props description was added
This commit is contained in:
parent
cf96556162
commit
22b543d1ed
@ -21,12 +21,15 @@ import Calendar from "@docspace/components/calendar";
|
||||
|
||||
#### Properties
|
||||
|
||||
| Props | Type | Required | Values | Default | Description |
|
||||
| -------------- | :------------: | :------: | :-----------: | :-----------------------: | ------------------------------------------------------------ |
|
||||
| `className` | `string` | - | - | - | Accepts class |
|
||||
| `id` | `string` | - | - | - | Accepts id |
|
||||
| `locale` | `string` | - | - | `User's browser settings` | Browser locale |
|
||||
| `maxDate` | `date` | - | - | `new Date("3000/01/01")` | Maximum date that the user can select. |
|
||||
| `minDate` | `date` | - | - | `new Date("1970/01/01")` | Minimum date that the user can select. |
|
||||
| `onChange` | `func` | - | - | - | Function called when the user select a day |
|
||||
| `style ` | `obj`, `arr` | - | - | - | Accepts css style |
|
||||
| Props | Type | Required | Values | Default | Description |
|
||||
| ----------------- | :--------------: | :------: | :----: | :-----------------------: | ------------------------------------------ |
|
||||
| `className` | `string` | - | - | - | Accepts class |
|
||||
| `id` | `string` | - | - | - | Accepts id |
|
||||
| `locale` | `string` | - | - | `User's browser settings` | Browser locale |
|
||||
| `maxDate` | `date`, `string` | - | - | `new Date("3000/01/01")` | Maximum date that the user can select. |
|
||||
| `minDate` | `date`, `string` | - | - | `new Date("1970/01/01")` | Minimum date that the user can select. |
|
||||
| `onChange` | `func` | - | - | - | Function called when the user select a day |
|
||||
| `style ` | `obj`, `arr` | - | - | - | Accepts css style |
|
||||
| `initialDate` | `date` | - | - | `new Date()` | First shown date. |
|
||||
| `selectedDate` | `date` | - | - | - | Selected date |
|
||||
| `setSelectedDate` | `date` | - | - | - | Setter for selected date |
|
||||
|
@ -71,6 +71,6 @@ const Template = ({ locale, minDate, maxDate, ...args }) => {
|
||||
export const Default = Template.bind({});
|
||||
Default.args = {
|
||||
locale: "en",
|
||||
maxDate: new Date(new Date().getFullYear() + 1 + "/01/01"),
|
||||
maxDate: new Date(new Date().getFullYear() + 10 + "/01/01"),
|
||||
minDate: new Date("1970/01/01"),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user