Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/flo-bit/ui-kit. 🦊 fox ui, svelte 5 and tailwind 4 flo-bit.dev/ui-kit
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829<script lang="ts"> import { Select, type WithoutChildren } from "bits-ui";
type Props = Select.RootProps & { placeholder?: string; contentProps?: WithoutChildren<Select.ContentProps>; };
let { value = $bindable(), placeholder, contentProps, children, ...props }: Props = $props();</script> <Select.Root bind:value={value as never} {...props}> <Select.Trigger> {value} </Select.Trigger> <Select.Portal> <Select.Content {...contentProps}> <Select.Viewport> {children?.()} </Select.Viewport> </Select.Content> </Select.Portal></Select.Root>