Skip to content

shadcn.io is not affiliated with official shadcn/ui

Shadcn Anatomy for React Radix UI

Labeled part diagrams for component docs.

Framework
UI library

Radix UI does not include this primitive, so this page uses the Ark UI component. The visuals match the Ark UI version.

Checkbox anatomycontrolCheckbox Labellabelrootshadcn.io

Installation

bunx --bun shadcn@latest add https://kit.dev/r/radix/anatomy.json

Usage

import {
  Anatomy,
  AnatomyCheck,
  AnatomyPart,
  AnatomyText,
} from "@/components/ui/anatomy";
<Anatomy brand title="Checkbox anatomy">
  <AnatomyPart
    box
    height={96}
    name="root"
    rx={14}
    width={480}
    x={360}
    y={267}
  >
    <AnatomyPart
      height={44}
      name="control"
      rx={8}
      side="start"
      tone="emphasis"
      width={44}
      x={26}
      y={26}
    >
      <AnatomyCheck />
    </AnatomyPart>
    <AnatomyPart
      height={96}
      name="label"
      side="bottom"
      width={360}
      x={86}
      y={0}
    >
      <AnatomyText fontSize={32}>Checkbox Label</AnatomyText>
    </AnatomyPart>
  </AnatomyPart>
</Anatomy>

Demos

Accordion

Action Bar

Toc

API Reference

Anatomy

PropType
children?React.ReactNode
dir?AnatomyDir

ANATOMY_HEIGHT

PropType

ANATOMY_WIDTH

PropType

AnatomyPart

PropType
children?React.ReactNode
height?number
name?string
tone?AnatomyTone
width?number

AnatomyText

PropType
childrenstring

AnatomyChevron

PropType

AnatomyCheck

PropType

AnatomyX

PropType