Foundation / Layout
Main
client24.5 kB
@stellaria/nebula-webMainPropsPreview
Preview
Props
17| Prop | Type | Default |
|---|---|---|
background | ReactNode | — |
bounce | boolean | true |
centered | boolean | true |
children | ReactNode | — |
className | string | — |
contentWidth | Unit | — |
footer | ReactNode | — |
header | ReactNode | — |
id | string | — |
momentum | boolean | false |
multiplier | number | 2.4 |
padded | boolean | false |
skipLabel | string | "Skip to content" |
smooth | boolean | true |
spacing | SpacingValue | — |
spring | SpringName | "default" |
withSkipLink | boolean | false |
Slot props
3Each one spreads over an inner element, so you can restyle a region without forking the component.
| Prop | Type | Default |
|---|---|---|
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