The container component let you use our default max-width and center the content on the page.
import { Container } from "@backstage/ui";
<Container>Hello World!</Container>
Prop | Type | Default | Responsive |
---|---|---|---|
gap | 0.511.5234567891011121314string | 4 | Yes |
className | string | - | No |
style | CSSProperties | - | No |
A simple example of how to use the Container component.
<Container>
<Box>Hello World</Box>
<Box>Hello World</Box>
<Box>Hello World</Box>
</Container>
The Container component also supports responsive values, making it easy to create responsive designs.
<Container paddingY={{ xs: 'sm', md: 'md' }}>
<Box>Hello World</Box>
<Box>Hello World</Box>
<Box>Hello World</Box>
</Container>
Our theming system is based on a mix between CSS classes, CSS variables and data attributes. If you want to customise this component, you can use one of these class names below.
bui-Container