Interface: RsCalendarProps
Props for the RsCalendar component.
Extends
CalendarProps
Properties
as?
optionalas?:ElementType<any, keyof IntrinsicElements>
You can use a custom element for this component
Inherited from
CalendarProps.as
bordered?
optionalbordered?:boolean
Show border
Inherited from
CalendarProps.bordered
cellClassName?
optionalcellClassName?: (date) =>string|undefined
Custom cell classes base on it's date
Parameters
date
Date
Returns
string | undefined
Inherited from
CalendarProps.cellClassName
children?
optionalchildren?:ReactNode
Primary content
Inherited from
CalendarProps.children
className?
optionalclassName?:string
Additional classes
Inherited from
CalendarProps.className
classPrefix?
optionalclassPrefix?:string
The prefix of the component CSS class
Inherited from
CalendarProps.classPrefix
compact?
optionalcompact?:boolean
Display a compact calendar
Inherited from
CalendarProps.compact
defaultValue?
optionaldefaultValue?:Date
Default value
Inherited from
CalendarProps.defaultValue
isoWeek?
optionalisoWeek?:boolean
ISO 8601 standard, each calendar week begins on Monday and Sunday on the seventh day
See
https://en.wikipedia.org/wiki/ISO_week_date
Inherited from
CalendarProps.isoWeek
label?
optionallabel?:string
Label for the calendar.
locale?
optionallocale?:CalendarLocale
Custom locale object
See
https://rsuitejs.com/guide/i18n/#calendar
Inherited from
CalendarProps.locale
monthDropdownProps?
optionalmonthDropdownProps?:MonthDropdownProps
The props for the Month Dropdown component.
Inherited from
CalendarProps.monthDropdownProps
onChange?
optionalonChange?: (date) =>void
Callback fired before the value changed
Parameters
date
Date
Returns
void
Inherited from
CalendarProps.onChange
onMonthChange?
optionalonMonthChange?: (date) =>void
Callback fired before the month changed
Parameters
date
Date
Returns
void
Todo-Doma
Change signature to onMonthChange(year: number, month: number, reason: string)?
Inherited from
CalendarProps.onMonthChange
onSelect?
optionalonSelect?: (date) =>void
Callback fired before the date selected
Parameters
date
Date
Returns
void
Inherited from
CalendarProps.onSelect
readOnly
readOnly:
boolean
Whether the calendar is read only.
renderCell?
optionalrenderCell?: (date) =>ReactNode
Custom render calendar cells
Parameters
date
Date
Returns
ReactNode
Inherited from
CalendarProps.renderCell
style?
optionalstyle?:CSSProperties
Additional style
Inherited from
CalendarProps.style
value?
optionalvalue?:Date
Controlled value
Inherited from
CalendarProps.value
weekStart?
optionalweekStart?:0|1|2|3|4|5|6
The index of the first day of the week (0 - Sunday)
If isoWeek is true, the value of weekStart is ignored.
Default
0
Inherited from
CalendarProps.weekStart