On this pageFunctions
Ui/Button
/**
* Renders an accessible button by building attribute groups and delegating
* layout to the consumer's `toView` callback.
*
* Takes the consumer's builder, which pins `Message` to the universe of the
* frame the button is rendered in. `onClick` must come from that same
* universe, so a Message the consumer's dispatcher cannot route is a compile
* error here.
*/
<Message>(
config: ViewConfig<Message>,
h: HtmlBuilder<Message>
): Html/** Attribute groups the button component provides to the consumer's `toView` callback. */
type ButtonAttributes = Readonly<{
button: ReadonlyArray<Attribute<Message>>
}>