From d8ae30216a8bef8c8d2a1621044a71bece787c4f Mon Sep 17 00:00:00 2001 From: devjoaov Date: Fri, 12 Apr 2024 09:51:40 -0300 Subject: [PATCH] chore: add collapsible component --- src/components/ui/Collapsible.tsx | 9 +++++++++ src/components/ui/index.ts | 1 + 2 files changed, 10 insertions(+) create mode 100644 src/components/ui/Collapsible.tsx diff --git a/src/components/ui/Collapsible.tsx b/src/components/ui/Collapsible.tsx new file mode 100644 index 0000000..a985a3c --- /dev/null +++ b/src/components/ui/Collapsible.tsx @@ -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 }; diff --git a/src/components/ui/index.ts b/src/components/ui/index.ts index ca036fb..560b12a 100644 --- a/src/components/ui/index.ts +++ b/src/components/ui/index.ts @@ -32,3 +32,4 @@ export * from "./Spinner"; export * from "./KpiCard"; export * from "./Skeleton"; export * from "./Carousel"; +export * from "./Collapsible";