Skip to content
Snippets Groups Projects
Unverified Commit 45b52756 authored by Kyle Doherty's avatar Kyle Doherty Committed by GitHub
Browse files

add calendars to the component guide (#10147)

parent 423d1c44
No related branches found
No related tags found
No related merge requests found
import React from "react";
import moment from "moment";
import Calendar from "./Calendar";
export const component = Calendar;
export const description = `For when gregorian time is your need, a calendar is your friend indeed`;
const onChange = () => ({});
export const examples = {
default: <Calendar onChange={onChange} />,
"With a selected date": <Calendar onChange={onChange} selected={moment()} />,
"With a date range": (
<Calendar
selected={moment()}
selectedEnd={moment().add(10, "days")}
onChange={onChange}
/>
),
"Dual with a date range": (
<Calendar
isDual
selected={moment()}
selectedEnd={moment().add(1, "month")}
onChange={onChange}
/>
),
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment