Home / File/ toggle-group-spacing.tsx — ui Source File

toggle-group-spacing.tsx — ui Source File

Architecture documentation for toggle-group-spacing.tsx, a tsx file in the ui codebase. 2 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  c98fe377_7d7b_4fbd_3812_33ffc2b4d069["toggle-group-spacing.tsx"]
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  c98fe377_7d7b_4fbd_3812_33ffc2b4d069 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  b4580ed6_9186_84ce_6bbc_e5d54313fa54["toggle-group"]
  c98fe377_7d7b_4fbd_3812_33ffc2b4d069 --> b4580ed6_9186_84ce_6bbc_e5d54313fa54
  style c98fe377_7d7b_4fbd_3812_33ffc2b4d069 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { BookmarkIcon, HeartIcon, StarIcon } from "lucide-react"

import {
  ToggleGroup,
  ToggleGroupItem,
} from "@/registry/new-york-v4/ui/toggle-group"

export default function ToggleGroupSpacing() {
  return (
    <ToggleGroup type="multiple" variant="outline" spacing={2} size="sm">
      <ToggleGroupItem
        value="star"
        aria-label="Toggle star"
        className="data-[state=on]:bg-transparent data-[state=on]:*:[svg]:fill-yellow-500 data-[state=on]:*:[svg]:stroke-yellow-500"
      >
        <StarIcon />
        Star
      </ToggleGroupItem>
      <ToggleGroupItem
        value="heart"
        aria-label="Toggle heart"
        className="data-[state=on]:bg-transparent data-[state=on]:*:[svg]:fill-red-500 data-[state=on]:*:[svg]:stroke-red-500"
      >
        <HeartIcon />
        Heart
      </ToggleGroupItem>
      <ToggleGroupItem
        value="bookmark"
        aria-label="Toggle bookmark"
        className="data-[state=on]:bg-transparent data-[state=on]:*:[svg]:fill-blue-500 data-[state=on]:*:[svg]:stroke-blue-500"
      >
        <BookmarkIcon />
        Bookmark
      </ToggleGroupItem>
    </ToggleGroup>
  )
}

Subdomains

Dependencies

  • lucide-react
  • toggle-group

Frequently Asked Questions

What does toggle-group-spacing.tsx do?
toggle-group-spacing.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 toggle-group-spacing.tsx?
toggle-group-spacing.tsx defines 1 function(s): ToggleGroupSpacing.
What does toggle-group-spacing.tsx depend on?
toggle-group-spacing.tsx imports 2 module(s): lucide-react, toggle-group.
Where is toggle-group-spacing.tsx in the architecture?
toggle-group-spacing.tsx is located at apps/v4/registry/new-york-v4/examples/toggle-group-spacing.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