svelisy
Version:
svelisy - DaisyUI components built with Svelte 🌼
21 lines (20 loc) • 991 B
TypeScript
import type { ComponentColor, ComponentSize, IComponentBaseProps } from '../../types';
import type { HTMLInputAttributes, HTMLSelectAttributes, HTMLTextareaAttributes } from 'svelte/elements';
export type InputType = 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'reset' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week' | 'search';
export type TInputProps = Omit<HTMLInputAttributes, 'size' | 'color'> & IComponentBaseProps & {
bordered?: boolean;
borderOffset?: boolean;
size?: ComponentSize;
color?: ComponentColor;
};
export type TSelectProps = Omit<HTMLSelectAttributes, 'size' | 'color'> & IComponentBaseProps & {
bordered?: boolean;
borderOffset?: boolean;
size?: ComponentSize;
color?: ComponentColor;
};
export type TTextAreaProps = Omit<HTMLTextareaAttributes, 'color'> & IComponentBaseProps & {
bordered?: boolean;
borderOffset?: boolean;
color?: ComponentColor;
};