feat(date-picker): add warn state

This commit is contained in:
Eric Liu 2021-02-03 15:57:00 -08:00
commit 6f7acd224f
5 changed files with 70 additions and 2 deletions

View file

@ -66,6 +66,18 @@ export interface DatePickerInputProps extends svelte.JSX.HTMLAttributes<HTMLElem
*/
invalidText?: string;
/**
* Set to `true` to indicate an warning state
* @default false
*/
warn?: boolean;
/**
* Specify the warning state text
* @default ""
*/
warnText?: string;
/**
* Set a name for the input element
*/