SimpleCalendar
Calendario mínimo de un mes, sin atajos ni rango.
import { SimpleCalendar } from '#LibComponents/react/atomic/simplecalendar/calendar.component';<SimpleCalendar name="fecha" onChange={fn} />Props del tipo del componente
| Prop | Tipo | Obligatorio | Default | Descripción |
|---|---|---|---|---|
autoFocus | boolean | no | — | |
i18n | { monthLabel?: string; yearLabel?: string } | no | — | Nombres de los desplegables de mes y año para el lector de pantalla; por defecto «Mes» y «Año». |
className | string | no | — | |
classOpts | {
classFocused?: string;
classBGColor?: string;
classDay?: string;
} | no | — | |
customErrorMessage | string | no | — | |
startDateValue | string | Date | no | — | |
endDateValue | string | Date | no | — | |
dayMapper | StaticFields[] | no | — | |
disabled | boolean | no | — | |
disableBefore | boolean | no | — | |
error | ErrorsType | null | no | — | |
forceUpdate | boolean | no | — | |
hasToggle | boolean | no | — | |
initial | boolean | no | — | |
initDate | string | Date | no | — | |
initYear | number | no | — | |
endYear | number | no | — | |
endDate | string | Date | no | — | |
errorMark | boolean | no | — | |
hasError | boolean | no | — | |
inline | boolean | no | — | |
isMobile | boolean | no | — | |
label | string | no | — | |
labelFloating | boolean | no | — | |
lang | string | no | — | |
enableManual | boolean | no | — | |
name | string | sí | — | |
linkValueTo | string | no | — | |
placeholder | string | no | — | |
positionOpts | {
cssProp?: string;
cssPropValues?: string[];
} | no | — | |
onChange | (inputValue: StaticFields) => void | sí | — | |
onDayClick | (selDay: StaticFields | number | undefined) => void | no | — | |
onFocus | (name: string) => void | no | — | |
onFormError | (error: ErrorOnField) => void | no | — | |
required | boolean | no | — | |
reverseOrder | boolean | no | — | |
showShortcuts | boolean | no | — | |
tabIndex | number | no | — | |
validPatterns | RegExp[] | no | — |