Skip to main content

Module button

Module button 

Source
Expand description

Tablo’s button: a variant for its weight, a size for its height. The markup carries data-slot="button", data-tone and data-size, which each theme’s skin keys on.

Structs§

ButtonProps
A <button>; its type is the browser’s default unless attrs names one.
ButtonPropsBuilder
Typestate builder for ButtonProps, created by ButtonProps::builder(). build() becomes available once every required property has been set.
button
A <button>; its type is the browser’s default unless attrs names one.

Enums§

ButtonSize
How tall a button is.
ButtonVariant
How much a button weighs on its page.

Functions§

button_variants
The classes of a button, for a link or a summary that reads as one. Give the element data-slot="button" and the variant’s data-tone too, so each theme’s skin reaches it.