API reference
components/slider
Import
Section titled “Import”import * as api from "@fungi.computer/caps/components/slider";Exports
Section titled “Exports”| Kind | Export | Description |
|---|---|---|
| type alias | SliderTone | Supported SliderTone values. |
| type alias | SliderSize | Supported SliderSize values. |
| type alias | SliderProps | Props accepted by Slider. |
| constant | Slider | A native range input with product-neutral tone and size variants. On a Screen it reads the screen context and draws as a segmented level. |
SliderTonetype alias
Section titled “SliderTone”type SliderTone = | "neutral" | "primary" | "secondary" | "accent" | "success" | "info" | "warning" | "error";Supported SliderTone values.
SliderSizetype alias
Section titled “SliderSize”type SliderSize = "xs" | "sm" | "default" | "lg";Supported SliderSize values.
SliderPropstype alias
Section titled “SliderProps”type SliderProps = object & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type">;Props accepted by Slider.
Type Declaration
Section titled “Type Declaration”| Name | Type |
|---|---|
size? |
SliderSize |
tone? |
SliderTone |
Sliderconstant
Section titled “Slider”const Slider: ForwardRefExoticComponent< object & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & RefAttributes<HTMLInputElement>>;A native range input with product-neutral tone and size variants. On a Screen it reads the screen context and draws as a segmented level.