Home / File/ slider-controlled.tsx — ui Source File

slider-controlled.tsx — ui Source File

Architecture documentation for slider-controlled.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.

File tsx DocumentationAtlas Changelog 3 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  1a8904e4_1939_ce84_86f3_086b25c9c0d9["slider-controlled.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  1a8904e4_1939_ce84_86f3_086b25c9c0d9 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  2a43f855_1408_526d_d4d2_31c7a87506c6["label"]
  1a8904e4_1939_ce84_86f3_086b25c9c0d9 --> 2a43f855_1408_526d_d4d2_31c7a87506c6
  38da3e2b_1269_52fe_517f_cf063a3c6c40["slider"]
  1a8904e4_1939_ce84_86f3_086b25c9c0d9 --> 38da3e2b_1269_52fe_517f_cf063a3c6c40
  style 1a8904e4_1939_ce84_86f3_086b25c9c0d9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import { Label } from "@/examples/radix/ui/label"
import { Slider } from "@/examples/radix/ui/slider"

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

Subdomains

Functions

Dependencies

  • label
  • react
  • slider

Frequently Asked Questions

What does slider-controlled.tsx do?
slider-controlled.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, Changelog subdomain.
What functions are defined in slider-controlled.tsx?
slider-controlled.tsx defines 1 function(s): SliderControlled.
What does slider-controlled.tsx depend on?
slider-controlled.tsx imports 3 module(s): label, react, slider.
Where is slider-controlled.tsx in the architecture?
slider-controlled.tsx is located at apps/v4/examples/radix/slider-controlled.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/examples/radix).

Analyze Your Own Codebase

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

Try Supermodel Free