Layout Content
@astryxdesign/core v0.7.1 · LayoutContent
Props
| Prop | Type | Default | Description |
|---|---|---|---|
isScrollable | boolean | true | Scrolls the region when its content is taller than the space it was given. |
label | string | — | Accessible name for the landmark element. |
padding | SpacingStep | — | Internal padding using the spacing scale. Overrides the padding the surrounding layout passes down. 0 makes the region full bleed. |
role | string | — | ARIA landmark role. |
SpacingStep accepts these values:
ts
type SpacingStep = 0 | 0.5 | 1 | 1.5 | 2 | 3 | 4 | 5 | 6 | 8 | 10Slots
default: the primary content.
Template ref
LayoutContent exposes element. Its type is HTMLDivElement | null.
Native attributes
The root element receives HTML attributes, aria-* attributes, data-* attributes, class, and style. class is merged with the component's own classes.