Whether to animate the Layer content when it opens. This property is deprecated and will be removed in the next major version of grommet. Instead, use 'animation'.
truefalse
Animation transition of the Layer content when it opens and closes.
"slide""fadeIn""none"truefalse
Whether the width and/or height should fill the current viewport size.
truefalse"vertical""horizontal"
The amount of margin around the Layer. An object can be specified to distinguish horizontal margin, vertical margin, and margin on a particular side of the layer
"none""xsmall""small""medium""large""any CSS size"{
"vertical": "...",
"horizontal": "...",
"top": "...",
"bottom": "...",
"left": "...",
"right": "..."
}Function that will be invoked on modal layers when the user clicks outside the layer.
() => {}Position of the layer content.
"bottom""bottom-left""bottom-right""center""hidden""left""right""top""top-left""top-right"
The actual breakpoint to trigger changes in the border, direction, gap, margin, pad, and round.
"small"The possible breakpoints that could affect border, direction, gap, margin, pad, and round.
{
"small": {
"value": 768,
"borderSize": {
"xsmall": "1px",
"small": "2px",
"medium": "4px",
"large": "6px",
"xlarge": "12px"
},
"edgeSize": {
"none": "0px",
"hair": "1px",
"xxsmall": "2px",
"xsmall": "3px",
"small": "6px",
"medium": "12px",
"large": "24px",
"xlarge": "48px"
},
"size": {
"xxsmall": "24px",
"xsmall": "48px",
"small": "96px",
"medium": "192px",
"large": "384px",
"xlarge": "768px",
"full": "100%"
}
},
"medium": {"value": 1536},
"large": {}
}