Skip to content
Foundation / Layout

Space

server21 kB
@stellaria/nebula-webSpaceProps

Preview

Props

5
PropTypeDefault

children

ReactNode

className

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

string

component

The element it paints.

(ElementType & C)"div"

h

Vertical gap. Reach for it when the gap belongs to one spot and not to the layout — a container with `gap` says the rhythm once and does not leave empty nodes in the DOM.

SpacingValue

w

Horizontal gap. Only useful between inline or flex siblings; a block box already fills its row.

SpacingValue

Also accepts

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

Style props · 126