Skip to main content

Module primitives

Module primitives 

Source
Expand description

Basic controls: buttons, icon buttons, checkboxes, inputs, radios, scroll areas, separators, sliders, switches, toggles and toggle groups.

Re-exports§

pub use button::Button;button
pub use button::button;button
pub use checkbox::CheckState;checkbox
pub use checkbox::Checkbox;checkbox
pub use checkbox::checkbox;checkbox
pub use icon_button::IconButton;icon-button
pub use icon_button::icon_button;icon-button
pub use input::Input;input
pub use input::input;input
pub use radio::Radio;radio
pub use radio::RadioGroup;radio
pub use radio::radio;radio
pub use radio::radio_group;radio
pub use scroll_area::ScrollArea;scroll-area
pub use scroll_area::scroll_area;scroll-area
pub use separator::Separator;separator
pub use separator::separator;separator
pub use separator::vertical_separator;separator
pub use slider::Slider;slider
pub use slider::slider;slider
pub use switch::Switch;switch
pub use switch::switch;switch
pub use toggle::Toggle;toggle
pub use toggle::toggle;toggle
pub use toggle_group::ToggleGroup;toggle-group
pub use toggle_group::toggle_group;toggle-group

Modules§

buttonbutton
Buttons with consistent variants, sizes and states.
checkboxcheckbox
Checkboxes with checked, unchecked and indeterminate states.
icon_buttonicon-button
Square, icon-only buttons with a label and an optional pressed state.
inputinput
Single-line text inputs with an optional leading icon.
radioradio
Radio buttons for picking one option from a small set.
scroll_areascroll-area
Scrollable regions with a thin, rounded scrollbar.
separatorseparator
Thin lines that divide groups of content, optionally with inline text.
sliderslider
Sliders for choosing a number within a range.
switchswitch
On/off switches for settings that apply immediately.
toggletoggle
Two-state buttons that stay pressed while an option is on.
toggle_grouptoggle-group
A row of toggles where one, or several, can be on.