diff options
Diffstat (limited to 'llama.cpp/tools/server/webui/src/lib/components/ui/separator')
| -rw-r--r-- | llama.cpp/tools/server/webui/src/lib/components/ui/separator/index.ts | 7 | ||||
| -rw-r--r-- | llama.cpp/tools/server/webui/src/lib/components/ui/separator/separator.svelte | 20 |
2 files changed, 27 insertions, 0 deletions
diff --git a/llama.cpp/tools/server/webui/src/lib/components/ui/separator/index.ts b/llama.cpp/tools/server/webui/src/lib/components/ui/separator/index.ts new file mode 100644 index 0000000..768efac --- /dev/null +++ b/llama.cpp/tools/server/webui/src/lib/components/ui/separator/index.ts | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | import Root from './separator.svelte'; | ||
| 2 | |||
| 3 | export { | ||
| 4 | Root, | ||
| 5 | // | ||
| 6 | Root as Separator | ||
| 7 | }; | ||
diff --git a/llama.cpp/tools/server/webui/src/lib/components/ui/separator/separator.svelte b/llama.cpp/tools/server/webui/src/lib/components/ui/separator/separator.svelte new file mode 100644 index 0000000..00307fd --- /dev/null +++ b/llama.cpp/tools/server/webui/src/lib/components/ui/separator/separator.svelte | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | <script lang="ts"> | ||
| 2 | import { Separator as SeparatorPrimitive } from 'bits-ui'; | ||
| 3 | import { cn } from '$lib/components/ui/utils.js'; | ||
| 4 | |||
| 5 | let { | ||
| 6 | ref = $bindable(null), | ||
| 7 | class: className, | ||
| 8 | ...restProps | ||
| 9 | }: SeparatorPrimitive.RootProps = $props(); | ||
| 10 | </script> | ||
| 11 | |||
| 12 | <SeparatorPrimitive.Root | ||
| 13 | bind:ref | ||
| 14 | data-slot="separator" | ||
| 15 | class={cn( | ||
| 16 | 'shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px', | ||
| 17 | className | ||
| 18 | )} | ||
| 19 | {...restProps} | ||
| 20 | /> | ||
