Home / Function/ SliderControlled() — ui Function Reference

SliderControlled() — ui Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  661feaa6_ef93_0623_d685_2f5778222d7b["SliderControlled()"]
  832b97b4_08b9_f0a2_b7c7_a61adad7c5de["slider-demo.tsx"]
  661feaa6_ef93_0623_d685_2f5778222d7b -->|defined in| 832b97b4_08b9_f0a2_b7c7_a61adad7c5de
  style 661feaa6_ef93_0623_d685_2f5778222d7b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/app/(internal)/sink/components/slider-demo.tsx lines 23–44

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

  return (
    <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={setValue}
        min={0}
        max={1}
        step={0.1}
      />
    </div>
  )
}

Subdomains

Frequently Asked Questions

What does SliderControlled() do?
SliderControlled() is a function in the ui codebase, defined in apps/v4/app/(internal)/sink/components/slider-demo.tsx.
Where is SliderControlled() defined?
SliderControlled() is defined in apps/v4/app/(internal)/sink/components/slider-demo.tsx at line 23.

Analyze Your Own Codebase

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

Try Supermodel Free