Module button

Module button 

Source
Expand description

Button module - Gateway only

Structs§

Active
Marker component indicating button is currently active. Used for current tab in a tab bar, current page in navigation, etc. Active state takes visual precedence over Selected state. Can coexist with Selected component.
ButtonBuilder
Builder for creating buttons with consistent styling
ButtonBuilderWithMarker
A ButtonBuilder with an attached marker component
ButtonPlugin
ButtonSelectionColors
Color configuration for all button states. Auto-generated from ButtonStyle by default, but can be overridden.
SelectableButton
Marker component indicating this button supports selection/toggle behavior. Buttons with this component will automatically respond to clicks by toggling their Selected state (if auto_toggle is true).
Selected
Marker component indicating button is currently selected. Used for toggle buttons, checkboxes, or items in a list. Can be added/removed at runtime to change selection state.
SelectionChanged
Message emitted when a selectable button’s selection state changes
StateColorSet
Color set for a specific state (normal/selected/active). Contains colors for all interaction states (normal/hover/pressed).
StyledButton
Marker component for styled buttons

Enums§

ButtonSize
Button size variants
ButtonStyle
Button style variants for consistent theming

Functions§

danger_button
Convenience function for creating a danger button
ghost_button
Convenience function for creating a ghost button
primary_button
Convenience function for creating a primary button
secondary_button
Convenience function for creating a secondary button
success_button
Convenience function for creating a success button