Layout.stack
function · packages/mixins/src/layout.ts:56
stack(options?: StackOptions): StyleValueA vertical stack that owns its children's block rhythm.
Mixins / foldkit-mixins/layout
namespace · packages/mixins/src/layout.ts:295
const Layout = {
stack,
intrinsic,
cluster,
split,
sidebar,
aside,
switcher,
reel,
center,
frame,
pad,
autoGrid,
}Layout.stackfunction · packages/mixins/src/layout.ts:56
stack(options?: StackOptions): StyleValueA vertical stack that owns its children's block rhythm.
Layout.intrinsicconst · packages/mixins/src/layout.ts:40
intrinsic: StyleValueA child of stack that keeps its intrinsic width instead of the stack's
full-width default. The stack's child rule excludes this piece's class.
Layout.clusterfunction · packages/mixins/src/layout.ts:79
cluster(options?: ClusterOptions): StyleValueItems that wrap onto new lines: tags, toolbar buttons, metadata.
Layout.splitfunction · packages/mixins/src/layout.ts:104
split(options?: SplitOptions): StyleValueTwo columns above a breakpoint, one below.
Layout.sidebarfunction · packages/mixins/src/layout.ts:141
sidebar(options?: SidebarOptions): StyleValueA sidebar beside content that wraps under it when the content would get
less than contentMin. Flex math, no query, so it needs no containment.
Layout.asideconst · packages/mixins/src/layout.ts:122
aside: StyleValueThe aside of a sidebar: composed by the child that is the sidebar. The
other children are the content.
Layout.switcherfunction · packages/mixins/src/layout.ts:161
switcher(options?: SwitcherOptions): StyleValueA row that becomes a stack when narrower than threshold. Flex math, no query.
Layout.reelfunction · packages/mixins/src/layout.ts:191
reel(options?: ReelOptions): StyleValueA horizontally scrolling row.
Layout.centerfunction · packages/mixins/src/layout.ts:224
center(options?: CenterOptions): StyleValueContent centered inline with a maximum measure and gutters.
Layout.framefunction · packages/mixins/src/layout.ts:245
frame(options?: FrameOptions): StyleValueA media frame with a fixed aspect ratio; an img or video child covers it.
Layout.padfunction · packages/mixins/src/layout.ts:264
pad(options?: PadOptions): StyleValueConsistent padding from the space tokens.
Layout.autoGridfunction · packages/mixins/src/layout.ts:281
autoGrid(options?: AutoGridOptions): StyleValueA grid that fits as many minItemSize columns as the width allows.