Skip to main content

Module spectrum

Module spectrum 

Source
Expand description

Dioxus element bindings and component wrappers for Spectrum Web Components.

Import with use crate::spectrum::*; to bring component wrappers into scope. Callers only need the SpXxx component functions.

Re-exports§

pub use SpTheme_completions::Component::SpTheme;
pub use SpTextfield_completions::Component::SpTextfield;
pub use SpNumberfield_completions::Component::SpNumberfield;
pub use SpSlider_completions::Component::SpSlider;
pub use SpFieldLabel_completions::Component::SpFieldLabel;
pub use SpHelpText_completions::Component::SpHelpText;
pub use SpDivider_completions::Component::SpDivider;
pub use SpHeading_completions::Component::SpHeading;
pub use SpActionGroup_completions::Component::SpActionGroup;
pub use SpActionButton_completions::Component::SpActionButton;
pub use SpSwitch_completions::Component::SpSwitch;
pub use SpCheckbox_completions::Component::SpCheckbox;
pub use SpSideNav_completions::Component::SpSideNav;
pub use SpSideNavItem_completions::Component::SpSideNavItem;
pub use SpIconZoomIn_completions::Component::SpIconZoomIn;
pub use SpIconZoomOut_completions::Component::SpIconZoomOut;

Structs§

SpActionButtonProps
Properties for the SpActionButton component.
SpActionGroupProps
Properties for the SpActionGroup component.
SpCheckboxProps
Properties for the SpCheckbox component.
SpFieldLabelProps
Properties for the SpFieldLabel component.
SpHeadingProps
Properties for the SpHeading component.
SpHelpTextProps
Properties for the SpHelpText component.
SpNumberfieldProps
Properties for the SpNumberfield component.
SpSideNavItemProps
Properties for the SpSideNavItem component.
SpSideNavProps
Properties for the SpSideNav component.
SpSliderProps
Properties for the SpSlider component.
SpSwitchProps
Properties for the SpSwitch component.
SpTextfieldProps
Properties for the SpTextfield component.
SpThemeProps
Properties for the SpTheme component.

Functions§

SpActionButton
A single button within an SpActionGroup (or standalone).
SpActionGroup
Groups a row of SpActionButtons into a single visual cluster.
SpCheckbox
A togglable checkbox for a bool-typed value.
SpDivider
Horizontal visual separator.
SpFieldLabel
Label associated with a form control.
SpHeading
Section heading.
SpHelpText
Descriptive or validation text associated with a form control.
SpIconZoomIn
Zoom-in glyph, used as SpActionButton icon content.
SpIconZoomOut
Zoom-out glyph, used as SpActionButton icon content.
SpNumberfield
Single-line numeric input.
SpSideNav
A scrollable, selectable vertical list of items — used as the examples picker sidebar.
SpSideNavItem
A single item within an SpSideNav.
SpSlider
A draggable slider for a numeric value with live min/max bounds, its own built-in label, and an optional inline editable number field.
SpSwitch
A labeled on/off toggle.
SpTextfield
Single-line text input.
SpTheme
Provides Spectrum token context for all descendant SWC components.