chakraDrawerOptions {shinyChakraUI}R Documentation

Drawer options

Description

Options for the drawer widget (chakraDrawer).

Usage

chakraDrawerOptions(
  closeOnEsc = TRUE,
  closeOnOverlayClick = TRUE,
  colorScheme = NULL,
  isCentered = FALSE,
  isFullHeight = FALSE,
  motionPreset = "scale",
  placement = "right",
  size = "xs",
  ...
)

Arguments

closeOnEsc

whether to close the panel on pressing the 'esc' key

closeOnOverlayClick

whether to close the panel on clicking the overlay

colorScheme

a chakra color scheme

isCentered

whether to center the modal on screen

isFullHeight

if TRUE and drawer's placement is "top" or "bottom", the drawer will occupy the viewport height

motionPreset

transition that should be used for the modal; one of "scale", "none", "slideInBottom", or "slideInRight"

placement

placement of the drawer, "top", "right", "bottom", or "left"

size

modal size, "sm", "md", "lg", "xl", "2xl", "full", "xs", "3xl", "4xl", "5xl", or "6xl"

...

other attributes of Drawer

Value

A named list, for usage in chakraDrawer.


[Package shinyChakraUI version 1.1.1 Index]