LayoutAlign Component synced with Web Awesome 3.0.0
Preparing for Web Awesome 1.0.0. This wrapper will not target a version above 1.0.0 until it is released.
Overview
Import
Import the layoutAlign directive from the angular-awesome package:
// Import the layoutAlign directive
import { WaLayoutAlignDirective } from 'angular-awesome/layout-align';
Examples
Align Items Directive Examples
This page shows how to use the [waAlignItems] directive together with Web Awesome layout utilities.
Center items in a cluster
<div class="wa-cluster wa-gap-s" [waAlignItems]="'center'">
<wa-avatar style="--size: 28px"></wa-avatar>
<span class="wa-body-s">User name</span>
<wa-button size="s" variant="filled">Follow</wa-button>
</div>
End align on split
<div class="wa-split:row wa-gap-m" [waAlignItems]="'end'">
<div>
<div class="wa-heading-m">Project</div>
<p class="wa-body-s wa-color-quiet">Align controls to bottom</p>
</div>
<div class="wa-cluster wa-gap-xs">
<wa-button size="s">Cancel</wa-button>
<wa-button size="s" variant="filled">Save</wa-button>
</div>
</div>
Baseline alignment in a stack
<div class="wa-stack wa-gap-xs" [waAlignItems]="'baseline'">
<div class="wa-heading-m">Heading</div>
<div class="wa-body-s">Smaller text aligns on baseline</div>
</div>