Home / Function/ SliderControlled() — ui Function Reference

SliderControlled() — ui Function Reference

Architecture documentation for the SliderControlled() function in slider-example.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  7ed8ad31_7421_1ca2_dc19_56f33fcd8702["SliderControlled()"]
  8d3f902e_c2b9_af0e_7b26_d797c5174f8b["slider-example.tsx"]
  7ed8ad31_7421_1ca2_dc19_56f33fcd8702 -->|defined in| 8d3f902e_c2b9_af0e_7b26_d797c5174f8b
  style 7ed8ad31_7421_1ca2_dc19_56f33fcd8702 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/examples/slider-example.tsx lines 72–95

function SliderControlled() {
  const [value, setValue] = React.useState([0.3, 0.7])

  return (
    <Example title="Controlled">
      <div className="grid w-full gap-3">
        <div className="flex items-center justify-between gap-2">
          <Label htmlFor="slider-demo-temperature">Temperature</Label>
          <span className="text-muted-foreground text-sm">
            {value.join(", ")}
          </span>
        </div>
        <Slider
          id="slider-demo-temperature"
          value={value}
          onValueChange={(value) => setValue(value as number[])}
          min={0}
          max={1}
          step={0.1}
        />
      </div>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

What does SliderControlled() do?
SliderControlled() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/slider-example.tsx.
Where is SliderControlled() defined?
SliderControlled() is defined in apps/v4/registry/bases/base/examples/slider-example.tsx at line 72.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free