initial commit
This commit is contained in:
commit
3c2fb32b3e
73 changed files with 22349 additions and 0 deletions
18
src/components/Collapsible.tsx
Normal file
18
src/components/Collapsible.tsx
Normal file
|
@ -0,0 +1,18 @@
|
|||
import { Collapsible } from "@ark-ui/solid";
|
||||
import type { Component, JSX } from "solid-js";
|
||||
import { CaretCircleRight } from "@icons";
|
||||
|
||||
export const DocsCollapsible: Component<{
|
||||
title: string;
|
||||
children: JSX.Element;
|
||||
}> = props => {
|
||||
return (
|
||||
<Collapsible.Root>
|
||||
<Collapsible.Trigger>
|
||||
<CaretCircleRight />
|
||||
{props.title}
|
||||
</Collapsible.Trigger>
|
||||
<Collapsible.Content>{props.children}</Collapsible.Content>
|
||||
</Collapsible.Root>
|
||||
);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue