- Updated toggle component to use new radix-ui import and improved styles. - Refactored tooltip component to align with new radix-ui structure and enhanced styles. - Added button group component for better button organization. - Introduced chart component with responsive design and tooltip functionality. - Created empty state components for better user experience. - Developed field components for form handling with improved accessibility. - Added input group component for better input management. - Introduced item components for structured content display. - Created keyboard shortcut components for better user interaction. - Added spinner component for loading states.
33 lines
795 B
TypeScript
33 lines
795 B
TypeScript
"use client"
|
|
|
|
import { Collapsible as CollapsiblePrimitive } from "radix-ui"
|
|
|
|
function Collapsible({
|
|
...props
|
|
}: React.ComponentProps<typeof CollapsiblePrimitive.Root>) {
|
|
return <CollapsiblePrimitive.Root data-slot="collapsible" {...props} />
|
|
}
|
|
|
|
function CollapsibleTrigger({
|
|
...props
|
|
}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>) {
|
|
return (
|
|
<CollapsiblePrimitive.CollapsibleTrigger
|
|
data-slot="collapsible-trigger"
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|
|
|
|
function CollapsibleContent({
|
|
...props
|
|
}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>) {
|
|
return (
|
|
<CollapsiblePrimitive.CollapsibleContent
|
|
data-slot="collapsible-content"
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export { Collapsible, CollapsibleTrigger, CollapsibleContent }
|