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
childrentype ONLY_FOR_FORMAT = | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | PromiseLikeOfReactNode
errorComponenttype ONLY_FOR_FORMAT = | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | PromiseLikeOfReactNode
hasErrorboolean
isLoadingboolean
skeletontype ONLY_FOR_FORMAT = | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | PromiseLikeOfReactNode
PropTypeDefaultDescription
descriptiontype ONLY_FOR_FORMAT = | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | PromiseLikeOfReactNode
footertype ONLY_FOR_FORMAT = | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | PromiseLikeOfReactNode
navtype ONLY_FOR_FORMAT = | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | PromiseLikeOfReactNode
titletype ONLY_FOR_FORMAT = | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | PromiseLikeOfReactNode
toolbartype ONLY_FOR_FORMAT = | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | PromiseLikeOfReactNode

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?