Grapes homepage1.57.0
  • Guide
  • Tokens
  • Components
    Grapes on GithubGrapes on Figma
    Interaction
    • Button
    • IconButton
    • FloatingActionBar
    • Link
    Icons
    • Icon
    • HighlightIcon
    Form
    • AmountInput
    • Autocomplete
    • AutocompleteMultiple
    • AutocompletePlace
    • CheckboxBox
    • CheckboxField
    • DatePicker
    • FormField
    • Input
    • OptionGroup
    • PasswordInput
    • PhoneInput
    • RadioBox
    • RadioField
    • RadioGroup
    • Select
    • SwitchField
    • TextArea
    • TextInput
    • Upload
    • UploadButton
    Feedback
    • Badge
    • Banner
    • Callout
    • EmptyState
    • Modal
    • ModalSlideshow
    • DeprecatedModalSlideshow
    • PageModal
    • Skeleton
    • Tag
    • Toast
    • Tooltip
    Data display
    • Accordion
    • Avatar
    • Box
    • Calendar
    • CalendarRange
    • CollapsibleList
    • FileCard
    • InfoTip
    • ListBox
    • ListView
    • Panel
    • SidePanel
    • DeprecatedPreview
    • Table
    • Timeline
    • useDateFormatter
    Navigation
    • DropdownItem
    • DropdownMenu
    • Navigation
    • NavigationItem
    • Popover
    • Tabs

    Calendar

    Calendar displays the grid of days in a month and allow users to select a single date.

    View source code
    • Usage
    • Props

    Basic usage

    October 2025

    Sun

    Mon

    Tue

    Wed

    Thu

    Fri

    Sat

    const Demo = () => {
      const [value, setValue] = useState(new Date("2022-02-14"));
    
      return <Calendar value={value} onClick={setValue} />;
    };
    

    With min and max date

    When a minimum or maximum date is specified, these dates are grayed out and cannot be selected.

    const Demo = () => {
      const [value, setValue] = useState(new Date("2022-02-14"));
    
      return (
        <Calendar
          maxDate={new Date("2022-02-24")}
          minDate={new Date("2022-02-04")}
          value={new Date("2022-02-15")}
          onClick={setValue}
        />
      );
    };
    

    October 2025

    Sun

    Mon

    Tue

    Wed

    Thu

    Fri

    Sat