feat(number-input): support warning state

This commit is contained in:
Eric Liu 2021-01-23 06:19:18 -08:00
commit bf176e642d
5 changed files with 63 additions and 4 deletions

View file

@ -78,6 +78,18 @@ export interface NumberInputProps extends svelte.JSX.HTMLAttributes<HTMLElementT
*/
invalidText?: string;
/**
* Set to `true` to indicate an warning state
* @default false
*/
warn?: boolean;
/**
* Specify the warning state text
* @default ""
*/
warnText?: string;
/**
* Specify the helper text
* @default ""