UNPKG

@specialdoom/solid-rev-kit

Version:

RevKit UI implementation for SolidJS

19 lines (18 loc) 558 B
import { Component } from 'solid-js'; type SelectOptionValue = string; interface SelectOption { label: string; value: SelectOptionValue; disabled?: boolean; } export interface SelectProps { options: SelectOption[]; placeholder?: string; defaultOption?: SelectOptionValue; onSelect?: (option: SelectOptionValue) => void; onChange?: (option: SelectOptionValue) => void; onBlur?: (option: SelectOptionValue) => void; disabled?: boolean; } export declare const Select: Component<SelectProps>; export {};