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

field-slider.tsx — ui Source File

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

File tsx ComponentRegistry ChartRegistry 3 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  4b43f5f5_3982_9ebe_1955_baf78275006c["field-slider.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  4b43f5f5_3982_9ebe_1955_baf78275006c --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  169af77a_46c3_8fec_4801_f34a0f1a3471["field"]
  4b43f5f5_3982_9ebe_1955_baf78275006c --> 169af77a_46c3_8fec_4801_f34a0f1a3471
  a726b95d_789e_b9ec_d440_20ff0f30482e["slider"]
  4b43f5f5_3982_9ebe_1955_baf78275006c --> a726b95d_789e_b9ec_d440_20ff0f30482e
  style 4b43f5f5_3982_9ebe_1955_baf78275006c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import { useState } from "react"

import {
  Field,
  FieldDescription,
  FieldTitle,
} from "@/registry/new-york-v4/ui/field"
import { Slider } from "@/registry/new-york-v4/ui/slider"

export default function FieldSlider() {
  const [value, setValue] = useState([200, 800])
  return (
    <div className="w-full max-w-md">
      <Field>
        <FieldTitle>Price Range</FieldTitle>
        <FieldDescription>
          Set your budget range ($
          <span className="font-medium tabular-nums">{value[0]}</span> -{" "}
          <span className="font-medium tabular-nums">{value[1]}</span>).
        </FieldDescription>
        <Slider
          value={value}
          onValueChange={setValue}
          max={1000}
          min={0}
          step={10}
          className="mt-2 w-full"
          aria-label="Price Range"
        />
      </Field>
    </div>
  )
}

Subdomains

Functions

Dependencies

  • field
  • react
  • slider

Frequently Asked Questions

What does field-slider.tsx do?
field-slider.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in field-slider.tsx?
field-slider.tsx defines 1 function(s): FieldSlider.
What does field-slider.tsx depend on?
field-slider.tsx imports 3 module(s): field, react, slider.
Where is field-slider.tsx in the architecture?
field-slider.tsx is located at apps/v4/registry/new-york-v4/examples/field-slider.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/examples).

Analyze Your Own Codebase

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

Try Supermodel Free