Skip to content

Commit

Permalink
chore: add collapsible component
Browse files Browse the repository at this point in the history
  • Loading branch information
devjoaov committed Apr 12, 2024
1 parent 0d72f69 commit d8ae302
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/ui/Collapsible.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";

const Collapsible = CollapsiblePrimitive.Root;

const { CollapsibleTrigger } = CollapsiblePrimitive;

const { CollapsibleContent } = CollapsiblePrimitive;

export { Collapsible, CollapsibleTrigger, CollapsibleContent };
1 change: 1 addition & 0 deletions src/components/ui/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ export * from "./Spinner";
export * from "./KpiCard";
export * from "./Skeleton";
export * from "./Carousel";
export * from "./Collapsible";

0 comments on commit d8ae302

Please sign in to comment.