#Container
import Container from "@poodle/ui/Container";
Container is a simple layout to center and horizontally padding the content inside it.
#Basic usage
Use fixed
prop to control container max width. It should work just like maxWith
system props.
However, fixed
prop will get break point width first before spacing width.
gutter
props work the same with px
system prop to horizontally padding the content.
Content
#Responsive
fixed
prop and gutter
prop are support responsive values.
Content
#Theming
Please check theming component document here.
export type ContainerStyleKeys = "root"export interface ContainerThemeConfigextends StandardThemeConfig<ContainerStyleKeys, ContainerProps> {}
#Props
#Local Props
Name | Type | Description |
---|---|---|
children | React.ReactNode | |
fixed | ResponsiveProp<string \| number> | Set the max-width of the container. |
gutter | ResponsiveProp<number \| string> | Set padding left and padding right. |
#Full Props
export interface ContainerPropsextends BoxProps,StandardComponentProps,LocalContainerProps {}