TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/toolwind/anchors/llms.txt
Use this file to discover all available pages before exploring further.
position-area CSS property places an anchored element in a specific region relative to its anchor. @toolwind/anchors maps a set of predefined keyword combinations to Tailwind utility names by replacing the space between multi-word values with a hyphen. For example, the CSS value top center becomes the utility suffix top-center, giving you anchored-top-center.
How utility names are derived
Every position-area CSS value consists of one or two keywords. Single-keyword values map directly (e.g.top → anchored-top). Two-keyword values join with a hyphen (e.g. bottom span-left → anchored-bottom-span-left).
Supported values
The table below lists every value supported by the plugin along with its generated CSS and a usage example.| Utility suffix | CSS value | Example class |
|---|---|---|
top-center | top center | anchored-top-center |
top-span-left | top span-left | anchored-top-span-left |
top-span-right | top span-right | anchored-top-span-right |
top | top | anchored-top |
left-center | left center | anchored-left-center |
left-span-top | left span-top | anchored-left-span-top |
left-span-bottom | left span-bottom | anchored-left-span-bottom |
left | left | anchored-left |
right-center | right center | anchored-right-center |
right-span-top | right span-top | anchored-right-span-top |
right-span-bottom | right span-bottom | anchored-right-span-bottom |
right | right | anchored-right |
bottom-center | bottom center | anchored-bottom-center |
bottom-span-left | bottom span-left | anchored-bottom-span-left |
bottom-span-right | bottom span-right | anchored-bottom-span-right |
bottom | bottom | anchored-bottom |
top-left | top left | anchored-top-left |
top-right | top right | anchored-top-right |
bottom-left | bottom left | anchored-bottom-left |
bottom-right | bottom right | anchored-bottom-right |
Visual placement guide
The grid below illustrates where each value places the anchored element relative to the anchor (center). Corner values cover a single cell; edge values withcenter extend along the midpoint of a side; span-* values extend toward the named corner along that edge.
Usage with anchored-/
Position area values compose naturally with the shorthand that also sets the anchor name:Usage as try-* fallbacks
Every position-area value also works as a
try-* fallback. The utility prefix changes from anchored- to try- and the CSS property changes from position-area to an entry in position-try-fallbacks. For example, try-top-center adds top center as a positional fallback. See position-try for the full try-* reference.anchored/{name}
How to attach elements to anchors and use position area with the anchored utility family.
position-try
Use try-* to define fallback positions when the preferred area overflows the viewport.