Practic BUI (Base UI) - v1.0.0
    Preparing search index...

    Variable SliderWidgetConst

    SliderWidget: (props: SliderWidgetProps) => Element & {
        Root: (props: SliderWidgetRootProps) => Element;
    } = ...

    A slider whose value can persist: the preset (<SliderWidget label='Volume' />), and Root, the stored value, to compose with the styled Slider parts.

    Type Declaration

      • (props: SliderWidgetProps): Element
      • The common slider: one thumb on its track, whose value can persist. The root's own props pass through; any other arrangement composes SliderWidget.Root.

        Parameters

        Returns Element

    <SliderWidget.Root data-key='practic_app_volume' data-attr='value'>
    <Slider.Value />
    <Slider.Control>
    <Slider.Track>
    <Slider.Indicator />
    <Slider.Thumb aria-label='Volume' />
    </Slider.Track>
    </Slider.Control>
    </SliderWidget.Root>