Skip to content
Foundation / Layout

Center

server19.75 kB
@stellaria/nebula-webCenterProps

Preview

Props

4
PropTypeDefault

children

ReactNode

className

Composes with the classes `Box` computes instead of replacing them.

string

component

The element it paints. `Center` only centres; the semantics are yours.

(ElementType & C)"div"

inline

Centres as `inline-flex`, so the box flows inside a line instead of taking the full width. Unlike `Flex`, `display` does not override it: centring is what this component is.

booleanfalse

Also accepts

On top of its own props, this component forwards these groups.

Style props · 128