import type { HTMLAttributes } from "svelte/elements";
interface SelectOption {
value: string;
label: string;
}
interface Props extends Omit, "onchange"> {
/** Array of `{ value, label }` option objects. */
options: SelectOption[];
/** Currently selected value. */
value?: string;
/** Label shown when no value is selected. @default 'SELECT…' */
placeholder?: string;
/** Show the error (danger-border) state. @default false */
error?: boolean;
/** Disable the select — prevents opening the dropdown. @default false */
disabled?: boolean;
/** Called with the new value string when the user selects an option. */
onchange?: (value: string) => void;
[key: string]: unknown;
}
declare const Select: import("svelte").Component;
type Select = ReturnType;
export default Select;