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 SpIconZoomIn_completions::Component::SpIconZoomIn;pub use SpIconZoomOut_completions::Component::SpIconZoomOut;
Structs§
- SpAction
Button Props - Properties for the
SpActionButtoncomponent. - SpAction
Group Props - Properties for the
SpActionGroupcomponent. - SpCheckbox
Props - Properties for the
SpCheckboxcomponent. - SpField
Label Props - Properties for the
SpFieldLabelcomponent. - SpHeading
Props - Properties for the
SpHeadingcomponent. - SpHelp
Text Props - Properties for the
SpHelpTextcomponent. - SpNumberfield
Props - Properties for the
SpNumberfieldcomponent. - SpSide
NavItem Props - Properties for the
SpSideNavItemcomponent. - SpSide
NavProps - Properties for the
SpSideNavcomponent. - SpSlider
Props - Properties for the
SpSlidercomponent. - SpSwitch
Props - Properties for the
SpSwitchcomponent. - SpTextfield
Props - Properties for the
SpTextfieldcomponent. - SpTheme
Props - Properties for the
SpThemecomponent.
Functions§
- SpAction
Button - A single button within an
SpActionGroup(or standalone). - SpAction
Group - Groups a row of
SpActionButtons into a single visual cluster. - SpCheckbox
- A togglable checkbox for a
bool-typed value. - SpDivider
- Horizontal visual separator.
- SpField
Label - Label associated with a form control.
- SpHeading
- Section heading.
- SpHelp
Text - Descriptive or validation text associated with a form control.
- SpIcon
Zoom In - Zoom-in glyph, used as
SpActionButtonicon content. - SpIcon
Zoom Out - Zoom-out glyph, used as
SpActionButtonicon content. - SpNumberfield
- Single-line numeric input.
- SpSide
Nav - A scrollable, selectable vertical list of items — used as the examples picker sidebar.
- SpSide
NavItem - 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.