compote-ui
Version:
An opinionated UI component library for Svelte, built on top of [Ark UI](https://ark-ui.com) with additional components and features not available in the core Ark UI library.
11 lines (10 loc) • 399 B
TypeScript
import type { SelectRootBaseProps } from '@ark-ui/svelte/select';
import type { ListItem } from '../../utils/collections';
export interface SelectProps<T extends ListItem> extends Omit<SelectRootBaseProps<T>, 'value' | 'collection'> {
value?: T['value'] | null;
items: T[];
label?: string;
placeholder?: string;
layout?: 'vertical' | 'horizontal';
size?: 'default' | 'sm';
}