Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

AppContainer

Clarence Siew edited this page Jul 17, 2021 · 2 revisions

AppContainer wraps the contents of your application's contents. This provides styling to Brioche components via Brioche's CSS utility library.

You may also pass a style override object into the AppContainer to specify certain application-wide styling attributes.

Import

import { AppContainer } from 'brioche';

Props

Name Type Description Example
children object Pass child components to be displayed within the container. <Card><CardBody><span>Hello world</span></CardBody></Card
className string Additional CSS classnames to use for styling. "hstack align-center justify-center"
style object Pass a run-of-the-mill React-style styling objects. { fontSize: "24px" }
styleOverride object Object map of Brioche-specific styling variables to override. See the page on styling overrides to see examples.