first commit
This commit is contained in:
commit
e687b4437b
418 files changed
+33577
No files matched your search
@@ -0,0 +1,18 @@
|
||||
<script lang="ts">
|
||||
import { Select as SelectPrimitive } from 'bits-ui';
|
||||
|
||||
type SelectProps = Omit<SelectPrimitive.RootProps, 'type' | 'value'> & {
|
||||
type?: 'single';
|
||||
value?: string;
|
||||
onValueChange?: (value: string) => void;
|
||||
};
|
||||
|
||||
let {
|
||||
open = $bindable(false),
|
||||
value = $bindable(''),
|
||||
type = 'single',
|
||||
...restProps
|
||||
}: SelectProps = $props();
|
||||
</script>
|
||||
|
||||
<SelectPrimitive.Root {type} bind:open bind:value={value as never} {...restProps} />
|
||||
Reference in new issue
Block a user