Skip to main content
type Alignment =
    | "center"
    | "leading"
    | "trailing"
    | "top"
    | "bottom"
    | "topLeading"
    | "topTrailing"
    | "bottomLeading"
    | "bottomTrailing";
center
string
Centers content both horizontally and vertically.
leading
string
Aligns content to the leading edge (left in LTR, right in RTL).
trailing
string
Aligns content to the trailing edge (right in LTR, left in RTL).
top
string
Aligns content to the top edge.
bottom
string
Aligns content to the bottom edge.
topLeading
string
Aligns content to the top-leading corner.
topTrailing
string
Aligns content to the top-trailing corner.
bottomLeading
string
Aligns content to the bottom-leading corner.
bottomTrailing
string
Aligns content to the bottom-trailing corner.