Toggle theme

Block🔗

A block component is a <div> with display: block, and a starting point for building your own custom block components.

Example🔗

Props - Block🔗

Name
Description
Type
Default Value
asA React component, or a string specifying a name for an HTML elementAsProp | undefinedn/a
childrenAny valid React NodeReactNoden/a
classNameAdd an additional custom className to element. Warning: make sure it doesn't collide with the classNames being generated for the atomic CSSstring | undefinedn/a
extendA CSS object or a function returning a CSS object, or an array of themExtendPropValue<CurrentTheme, { as?: AsProp | undefined; className?: string | undefined; children?: ReactNode; }>n/a
2022 © Volvo Car Corporation