Skip to main content

UI

A UI value represents a slot in the user interface hierarchy. Pass this to user interface functions like P which will insert their elements into the slot in user interface. See the UI page to learn more about how to construct user interfaces in Easel.

pub fn DisplayFriendlyMessage([ui]) {
// This 'ui' variable is automatically cascaded into the `P` function below,
// which tells it where to insert the new paragraph in the user interface.
P { "Hello, world!" }
}