mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
feat(number-input): support warning state
This commit is contained in:
parent
8f0c518d1f
commit
bf176e642d
5 changed files with 63 additions and 4 deletions
12
types/NumberInput/NumberInput.d.ts
vendored
12
types/NumberInput/NumberInput.d.ts
vendored
|
@ -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 ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue