Skip to content
Foundation / Layout

Box

server19.75 kB
@stellaria/nebula-webBoxProps

Preview

Props

3
PropTypeDefault

children

ReactNode

className

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

string

component

The element it paints. Everything else about `Box` is style, so this is what decides its semantics: without it you get a `div`, which is right for a wrapper and wrong for anything a screen reader should announce. The DOM props it accepts follow from this.

(ElementType & C)"div"

Also accepts

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

Style props · 128