diff --git a/src/components/ui/section-disclosure.tsx b/src/components/ui/section-disclosure.tsx deleted file mode 100644 index ec53285..0000000 --- a/src/components/ui/section-disclosure.tsx +++ /dev/null @@ -1,50 +0,0 @@ -import type { JSX, ParentProps } from "solid-js"; -import { IconChevronRight } from "@/components/ui/icons"; -import { cn } from "@/lib/cn"; - -export function SectionDisclosure(props: ParentProps<{ - open: boolean; - onToggle: () => void; - title: string; - description?: string; - meta?: JSX.Element; - actions?: JSX.Element; - class?: string; -}>) { - return ( -
-
- -
- {props.meta} - {props.actions} -
-
-
-
-
- {props.children} -
-
-
-
- ); -} diff --git a/src/components/ui/tabs.tsx b/src/components/ui/tabs.tsx new file mode 100644 index 0000000..530be40 --- /dev/null +++ b/src/components/ui/tabs.tsx @@ -0,0 +1,48 @@ +import { Tabs as TabsPrimitive } from "@kobalte/core/tabs"; +import type { ComponentProps, ValidComponent } from "solid-js"; +import { splitProps } from "solid-js"; +import { cn } from "@/lib/cn"; + +export const Tabs = TabsPrimitive; + +export function TabsList( + props: ComponentProps>, +) { + const [local, rest] = splitProps(props as ComponentProps, ["class"]); + return ( + + ); +} + +export function TabsTrigger( + props: ComponentProps>, +) { + const [local, rest] = splitProps(props as ComponentProps, ["class"]); + return ( + + ); +} + +export function TabsContent( + props: ComponentProps>, +) { + const [local, rest] = splitProps(props as ComponentProps, ["class"]); + return ( +