Folder
betaA folder illustration whose sheets fan out on hover and lift out as its flap tips open in 3D when pressed.
- Display
- 1 file
- 1 npm package
- Accessibility notes
pnpm dlx @dowel-ui/cli add foldernpm packages installed: class-variance-authority.
import { Folder } from "@/components/ui/folder";Default
Gallery
Primary
Inverted
Open
Sizes
With Thumbnails
With Emoji
Reveals Contents
Hidden Label
Disabled
Right To Left
<Folder>
| Prop | Type | Default |
|---|---|---|
defaultOpenInitial open state when uncontrolled. | boolean | false |
hideLabelKeeps | boolean | false |
itemsPreviews for the sheets, back to front — thumbnails, emoji, icons. Up to three are shown; sheets without one show faint lines. Decorative: they are hidden from assistive technology, so describe the contents elsewhere. | ReactNode[] | — |
labelThe folder's name: its visible caption and its accessible name. | ReactNode | "Folder" |
onOpenChangeCalled when a click, Enter, Space or Escape opens or closes the folder. | (open: boolean) => void | — |
openControlled open state. | boolean | — |
size | "sm" | "md" | "lg" | "md" |
tone | "neutral" | "primary" | "inverted" | "neutral" |
Plus every attribute of <button> except children.
10/10
checks passed
- Tested — passes
- axe assertion — passes
- Keyboard tested — passes
- Storybook examples — passes
- Accessibility documented — passes
- Semantic tokens only — passes
- Motion from tokens — passes
- className merged — passes
- Visible focus — passes
- No fixed widths — passes