Components
- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Collapsible
- Combobox
- Command
- Context Menu
- Data Table
- Date Picker
- Dialog
- Drawer
- Dropdown Menu
- Hover Card
- Input
- Input OTP
- Kbd
- Label
- Menubar
- Native Select
- Navigation Menu
- Pagination
- Popover
- Progress
- Radio Group
- Resizable
- Scroll Area
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toggle
- Toggle Group
- Tooltip
@peduarte starred 3 repositories
@radix-ui/primitives
@base-ui/react
@stylexjs/stylex
"use client";
import { ChevronsUpDownIcon } from "lucide-react";
import { Button } from "@/components/button/button";
import {Installation
$ pnpm dlx shadcn@latest add https://shadcn-cssinjs.vercel.app/r/collapsible.json
Usage
import {
Collapsible,
CollapsibleContent,
CollapsibleTrigger,
} from "@/components/ui/collapsible/collapsible";<Collapsible>
<CollapsibleTrigger>Can I use this in my project?</CollapsibleTrigger>
<CollapsibleContent>
Yes. Free to use for personal and commercial projects.
</CollapsibleContent>
</Collapsible>Composition
Use the following composition to build a Collapsible:
Collapsible
├── CollapsibleTrigger
└── CollapsibleContentExamples
Settings Panel
Use a collapsible to progressively disclose advanced options.
Advanced settings
Email notifications
"use client";
import { ChevronsUpDownIcon } from "lucide-react";
import { Button } from "@/components/button/button";
import {RTL
To enable right-to-left support, see the RTL guide.
الطلب #4189
الحالةتم الشحن
"use client";
import { ChevronsUpDown } from "lucide-react";
import * as React from "react";
import { useTranslation } from "@/components/language-selector";API Reference
See the Base UI documentation for the full API.