|
| 1 | +{ |
| 2 | + "name": "CalendarDayButton", |
| 3 | + "description": "An individual interactive day button in the calendar.\nRenders a `<button>` element.", |
| 4 | + "props": { |
| 5 | + "focusableWhenDisabled": { |
| 6 | + "type": "boolean", |
| 7 | + "default": "false", |
| 8 | + "description": "When `true` the item remains focusable when disabled.", |
| 9 | + "detailedType": "boolean | undefined" |
| 10 | + }, |
| 11 | + "nativeButton": { |
| 12 | + "type": "boolean", |
| 13 | + "default": "true", |
| 14 | + "description": "Whether the component renders a native `<button>` element when replacing it\nvia the `render` prop.\nSet to `false` if the rendered element is not a button (e.g. `<div>`).", |
| 15 | + "detailedType": "boolean | undefined" |
| 16 | + }, |
| 17 | + "format": { |
| 18 | + "type": "string", |
| 19 | + "default": "adapter.formats.dayOfMonth", |
| 20 | + "description": "The format used to display the day.", |
| 21 | + "detailedType": "string | undefined" |
| 22 | + }, |
| 23 | + "className": { |
| 24 | + "type": "string | ((state: Calendar.DayButton.State) => string | undefined)", |
| 25 | + "description": "CSS class applied to the element, or a function that\nreturns a class based on the component’s state.", |
| 26 | + "detailedType": "| string\n| ((state: Calendar.DayButton.State) => string | undefined)" |
| 27 | + }, |
| 28 | + "style": { |
| 29 | + "type": "CSSProperties | ((state: Calendar.DayButton.State) => CSSProperties | undefined)", |
| 30 | + "detailedType": "| React.CSSProperties\n| ((\n state: Calendar.DayButton.State,\n ) => CSSProperties | undefined)\n| undefined" |
| 31 | + }, |
| 32 | + "render": { |
| 33 | + "type": "ReactElement | ((props: HTMLProps, state: Calendar.DayButton.State) => ReactElement)", |
| 34 | + "description": "Allows you to replace the component’s HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.", |
| 35 | + "detailedType": "| ReactElement\n| ((\n props: HTMLProps,\n state: Calendar.DayButton.State,\n ) => ReactElement)" |
| 36 | + } |
| 37 | + }, |
| 38 | + "dataAttributes": { |
| 39 | + "data-selected": { |
| 40 | + "description": "Present when the day is selected." |
| 41 | + }, |
| 42 | + "data-disabled": { |
| 43 | + "description": "Present when the day is disabled." |
| 44 | + }, |
| 45 | + "data-current": { |
| 46 | + "description": "Present when the day is the current date." |
| 47 | + }, |
| 48 | + "data-outside-month": { |
| 49 | + "description": "Present when the day is outside the month rendered by the day grid wrapping it." |
| 50 | + }, |
| 51 | + "data-unavailable": { |
| 52 | + "description": "Present when the day is unavailable." |
| 53 | + } |
| 54 | + }, |
| 55 | + "cssVariables": {} |
| 56 | +} |
0 commit comments