mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
feat(date-picker): add warn state
This commit is contained in:
parent
6cb4aeb35c
commit
6f7acd224f
5 changed files with 70 additions and 2 deletions
12
types/DatePicker/DatePickerInput.d.ts
vendored
12
types/DatePicker/DatePickerInput.d.ts
vendored
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue