v1.0.10

Container

Installation

Install yarn add @spark-web/container
Source GitHub.com
Bundle unpkg.com

The container centers and constrains the maximum width of the content it wraps.

Examples

Size

Use the size prop to adjust the maximum width of the container.

xsmall
small
medium
large

Props

PropTypeDescription

children

ReactNode: string | number | false | true | {} | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal

Children elements to be rendered inside the container.

data?

DataAttributeMap

Sets data attributes on the element.

size?

"small" | "xsmall" | "medium" | "large" | "xlarge"

Sets the size of the container.

© 2023 Brighte Capital Pty Ltd