Date picker
Date picker
Component demo
Interactive example
<ic-date-pickerlabel="When would you like to collect your coffee?"></ic-date-picker>
<IcDatePickerlabel="When would you like to collect your coffee?"/>
Date picker details
Props
All components also accept native properties supported by the DOM, such asclassName
and
style
.
|
|
|
---|---|---|
|
The label for the date input. |
|
|
The format in which the date will be displayed. |
|
|
The days of the week to disable. |
|
|
The text to display as the validation message when |
|
|
If |
|
|
The text to display as the validation message when |
|
|
If |
|
|
The text to display as the validation message when |
|
|
If |
|
|
The helper text that will be displayed for additional field guidance. This will default to the text "Use format" along with the |
|
|
If |
|
|
If |
|
|
The ID for the input field. The default will be an automatically generated value. |
|
|
The text to display as the validation message when an invalid date is entered. |
|
|
The latest date that will be allowed. The value can be in any format supported as |
|
|
The earliest date that will be allowed. The value can be in any format supported as |
|
|
The name of the control, which is submitted with the form data. |
|
|
The date visible when the calendar opens. Used if no date is currently selected.
The value can be in any format supported as |
|
|
If |
|
|
If |
|
|
If |
|
|