@jill64/svelte-input
Version:
➡️ Functional Input Component Set for Svelte
19 lines (18 loc) • 801 B
TypeScript
import type { HTMLOptionAttributes, HTMLSelectAttributes } from 'svelte/elements';
import type { GroupedInput } from './types/GroupedInput';
import type { ListInput } from './types/ListInput';
type $$ComponentProps = {
value?: string;
list?: GroupedInput | ListInput;
Class?: HTMLSelectAttributes['class'];
style?: HTMLSelectAttributes['style'];
optionClass?: HTMLOptionAttributes['class'];
optionStyle?: HTMLOptionAttributes['style'];
disabled?: HTMLSelectAttributes['disabled'];
required?: HTMLSelectAttributes['required'];
attributes?: HTMLSelectAttributes;
onChange?: ((item: string) => unknown) | undefined;
};
declare const Select: import("svelte").Component<$$ComponentProps, {}, "value">;
type Select = ReturnType<typeof Select>;
export default Select;