VStack
A view that arranges its children one on top of the other.
ts
interface VStackSignature {
Attributes: {
readable?: FrameInlineLength // Shortcut for `placement="leading fill" frame:alignment="center" frame:width="infinity" frame:max-width="{length}"`
distribution?: 'leading' | 'leading fill' | 'center' | 'trailing' | 'fill' | 'space-between' // The distribution of cols
template?: Template // The main-axis grid template
spacing?: Spacing // The gap between the primary axis
alignment?: inlineSet // The cross-axis alignment
distribution?: blockSet // The main-axis alignment
placement?: blockPlacementSet // The main-axis alignment
}
}
class VStack extends HTMLElement<VStackSignature> {}
declare global {
interface HTMLElementTagNameMap {
'v-stack': VStack // <v-stack></v-stack>
}
}Overview
A view that arranges its subviews in a vertical line.
Default styling reference
Here's a complete list of the default colors and their values for reference:
css
@layer components {
:where(v-stack) {
grid-template-columns: minmax(0, 1fr);
place-items: safe center;
place-content: safe center;
gap: 1rem;
}
}Topics
Building layouts with stack views
Check out the documentation for the full list of markdown extensions.
Relationships
Conforms To
HTMLElement