@meysam213/mantine-dates-jalali
v7.3.2-jalali-1
Published
Jalali Calendars, date and time pickers based on Mantine components
Downloads
2
Maintainers
Readme
@meysam213/mantine-dates-jalali
Jalali Calendars, date and time pickers based on Mantine components
Installation
# With yarn
yarn add @meysam213/mantine-dates-jalali
# With npm
npm install @meysam213/mantine-dates-jalali
# With pnpm
pnpm add @meysam213/mantine-dates-jalali
Usage
import { MantineProvider, createTheme } from "@mantine/core";
import {
DatePickerInput,
DatesProvider,
} from "@meysam213/mantine-dates-jalali";
import "dayjs/locale/fa";
export default function Test() {
const theme = createTheme({
/** Put your mantine theme override here */
});
return (
<MantineProvider theme={theme}>
<DatesProvider
settings={{ locale: "fa", weekendDays: [4, 5], firstDayOfWeek: 6 }}
>
<DatePickerInput />
</DatesProvider>
</MantineProvider>
);
}
License
MIT