Skip to content
Foundation / Layout

Main

client27 kB
@stellaria/nebula-webMainProps

Preview

Preview

Props

17
PropTypeDefault

background

ReactNode

—

bounce

booleantrue

centered

booleantrue

children

ReactNode

—

className

string

—

contentWidth

Unit

—

footer

ReactNode

—

header

ReactNode

—

id

string

—

momentum

booleanfalse

multiplier

number2.4

padded

booleanfalse

skipLabel

string"Skip to content"

smooth

booleantrue

spacing

SpacingValue

—

spring

SpringName"default"

withSkipLink

booleanfalse

Slot props

3

Each one spreads over an inner element, so you can restyle a region without forking the component.

PropTypeDefault

backdropProps

The background layer. Only rendered with a `background`.

BoxSlotProps

—

contentProps

The `<main>`. Its style composes with the `contentWidth` and `spacing` vars, it does not override them.

BoxSlotProps

—

skipProps

The skip link. Only rendered with `withSkipLink`.

BoxSlotProps

—

Also accepts

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

Style props · 128