Page

Page makes it easy to implement consistent page layouts throughout your app.

Props#

The Page component and all sub components accept all Box properties.

Page#

PropTypeDefaultDescription
childrenstring | number | bigint | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<...>
errorComponentstring | number | bigint | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<...>
hasErrorboolean
isLoadingboolean
skeletonstring | number | bigint | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<...>
PropTypeDefaultDescription
descriptionstring | number | bigint | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<...>
footerstring | number | bigint | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<...>
navstring | number | bigint | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<...>
titlestring | number | bigint | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<...>
toolbarstring | number | bigint | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<...>

PageBody#

PropTypeDefaultDescription
contentPropsHTMLChakraProps<"div">
contentWidthResponsiveValue<number | "px" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "-moz-fit-content" | "-moz-max-content" | "-moz-min-content" | ... 62 more ... | "container.2xl">

BackButton#

PropTypeDefaultDescription
aria-labelstring
hrefstring | object
iconReactElement<any, string | JSXElementConstructor<any>>The icon to be used in the button.
isActivebooleanfalseIf true, the button will be styled in its active state.
isDisabledbooleanfalseIf true, the button will be disabled.
isLoadingbooleanfalseIf true, the button will show a spinner.
isRoundbooleanfalseIf true, the button will be perfectly round. Else, it'll be slightly round
spinnerReactElement<any, string | JSXElementConstructor<any>>Replace the spinner component when isLoading is set to true

Was this helpful?