SliderControlled() — ui Function Reference
Architecture documentation for the SliderControlled() function in slider-controlled.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD cf5a6e59_62a6_974a_02d7_8bd345f4a5b5["SliderControlled()"] b777348d_fcdf_36c6_931c_e7efbaad2c7b["slider-controlled.tsx"] cf5a6e59_62a6_974a_02d7_8bd345f4a5b5 -->|defined in| b777348d_fcdf_36c6_931c_e7efbaad2c7b style cf5a6e59_62a6_974a_02d7_8bd345f4a5b5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/base/slider-controlled.tsx lines 7–28
export function SliderControlled() {
const [value, setValue] = React.useState([0.3, 0.7])
return (
<div className="mx-auto grid w-full max-w-xs 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>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does SliderControlled() do?
SliderControlled() is a function in the ui codebase, defined in apps/v4/examples/base/slider-controlled.tsx.
Where is SliderControlled() defined?
SliderControlled() is defined in apps/v4/examples/base/slider-controlled.tsx at line 7.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free