Skip to main content
PROYECTOVIVIANA

Slider

The props declared for Slider, generated from the types @proyecto-viviana/ui ships.

Import

import { Slider } from "@proyecto-viviana/ui";

Props

Props for Slider in @proyecto-viviana/ui
PropTypeDefaultDescription
size'S' | 'M' | 'L' | 'XL' | 'sm' | 'md' | 'lg'—Not yet documented
variant'default' | 'accent'—Legacy alias. Prefer S2 `isEmphasized`.
isEmphasizedfalse | true—Not yet documented
trackStyle'thin' | 'thick'—Not yet documented
thumbStyle'default' | 'precise'—Not yet documented
fillOffsetnumber—Not yet documented
classstring—Not yet documented
labelnumber | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement—Not yet documented
contextualHelpnumber | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement—Not yet documented
showOutputfalse | true—Not yet documented
showMinMaxfalse | true—Not yet documented
labelPosition'top' | 'side'—Not yet documented
labelAlign'start' | 'end'—Not yet documented
stylesStyleString—Not yet documented
UNSAFE_classNamestring—Not yet documented
UNSAFE_styleJSX.CSSProperties—Not yet documented
slotstring—Not yet documented
refHTMLDivElement | ((el: HTMLDivElement) => void) | { current?: HTMLDivElement | null | undefined; }—Not yet documented
idstring—An ID for the slider. solidaria
onChange(value: number) => void—Handler called when the value changes. solidaria-components
aria-describedbystring—The ID of an element that describes the slider. solidaria
aria-detailsstring—The ID of an element that provides details for the slider. solidaria
aria-labelstring—An accessible label for the slider when no visible label is provided. solidaria
aria-labelledbystring—The ID of an element that labels the slider. solidaria
isDisabledfalse | true—Whether the slider is disabled. solidaria
formstring—The form element this input belongs to. solidaria
namestring—The name for the form input. solidaria
valuenumber—The current value (controlled). solidaria-components
stepnumber—The step value. solidaria-components
orientation'horizontal' | 'vertical'—The orientation of the slider. solidaria-components
localestring—The locale for number formatting. solidaria-components
defaultValuenumber—The default value (uncontrolled). solidaria-components
minValuenumber—The minimum value. solidaria-components
maxValuenumber—The maximum value. solidaria-components
onChangeEnd(value: number) => void—Handler called when dragging ends. solidaria-components
formatOptionsIntl.NumberFormatOptions—Number format options. solidaria-components

Declared in packages/viviana-ui/src/slider/index.tsx.

Props marked solidaria or solidaria-components come from the headless layer underneath and behave the same in both registers. Components that wrap a DOM element also accept that element's standard attributes, which are left out here on purpose — listing them would bury the props that are actually ours.