App shell API
Import
Section titled “Import”import { UNSTABLE_AppShell, UNSTABLE_AppShellBody } from '@cimpress-ui/react';Side nav integration
Section titled “Side nav integration”App shell handles wiring up the side nav to the app header and managing the open/close state for you. The app header will display a button for toggling the side nav on smaller screens, and the open/close state is managed for you automatically.
API reference
Section titled “API reference”UNSTABLE_AppShell
Section titled “UNSTABLE_AppShell”UNSTABLE_AppShellProps
- ReactNode
children *
Section titled “ children * ” - string
-
The element's unique identifier. See MDN.
- boolean
data-cim-style-root
Section titled “ data-cim-style-root ” -
Use this attribute to "claim" the component tree for exclusive Cimpress UI usage.
- string
UNSAFE_className
Section titled “ UNSAFE_className ” -
Sets the CSS className for the element. Only use as a last resort. Use style props instead.
See styling guide.
- CSSProperties
UNSAFE_style
Section titled “ UNSAFE_style ” -
Sets the CSS style for the element. Only use as a last resort. Use style props instead.
See styling guide.
UNSTABLE_AppShellBody
Section titled “UNSTABLE_AppShellBody”UNSTABLE_AppShellBodyProps
- ReactNode
children *
Section titled “ children * ” - string
-
The element's unique identifier. See MDN.
- boolean
data-cim-style-root
Section titled “ data-cim-style-root ” -
Use this attribute to "claim" the component tree for exclusive Cimpress UI usage.
- string
UNSAFE_className
Section titled “ UNSAFE_className ” -
Sets the CSS className for the element. Only use as a last resort. Use style props instead.
See styling guide.
- CSSProperties
UNSAFE_style
Section titled “ UNSAFE_style ” -
Sets the CSS style for the element. Only use as a last resort. Use style props instead.
See styling guide.