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

    PageModal

    PageModals are a variant form of Modal designed for larger content. They are intended for contexts involving extensive information, complex tasks, or substantial workflows. The content behind a PageModal dialog is inert, meaning that users cannot interact with it.

    View source code
    • Usage
    • Props
    • children
      ReactNode

      The content of the PageModal.

    • isOpen
      boolean

      Whether the PageModal is open.

    • onClose
      MouseEventHandler<HTMLButtonElement>

      Close the PageModal.

    • title
      ReactNode

      The title to display in the PageModal.

    • noAnimation
      boolean

      Remove the transition on the PageModal.

      Default: false
    • portalContainer
      Element

      The element where to mount the Modal. It needs to be outside the GrapesProvider tree for the focus trap to work properly.

      Default: document.body