Skip to main content

Module button

Module button 

Source
Available on crate feature button only.
Expand description

Buttons with consistent variants, sizes and states.

Re-exports§

pub use super::icon_button::icon_button;icon-button

Structs§

Button
A button builder. Convert it into an Element to render.
Colours
Background, foreground and border colours for a variant in a state.
Metrics
Resolved dimensions for a Size.

Enums§

Size
Button dimensions.
Variant
Visual emphasis of a button.

Functions§

button
Creates a button with a text label.
colours
Resolves the colours of a variant for a given interaction state.
padding_x
Horizontal padding inside a button. A link has none, so its text lines up with the content around it, such as a card’s body above its footer.
style
The iced button style for a variant in a state.