Edge
Edge
lets you place elements on the edge of a container.
-->
Edge
lets you place elements on the edge of a container.
Just pick an edge and you’ll have your element on the edge. It might get cold with too much ice though.
Text rotation not included. Rotate text with Writing
Just add full
to the Edge
class and you’ll get it.
Each edge corner has start
, center
and end
modifiers that let you control edge position with extra precision
Edge
lets you place elements on the edge of a container. It must be used in a Stack
or Relative
container. If you use Tailwind, relative
works too.
To use Edge
, just choose one of the directional classes and apply it to the element.
There are four top
edges.
Edge-topleft
: Place content at the top left edgeEdge-top
: Place content at the top edgeEdge-topright
: Place content at the top right edgeEdge-topfull
: Place content at the top edge, spanning the full widthThere are four bottom
edges.
Edge-bottomleft
: Place content at the bottom left edgeEdge-bottom
: Place content at the bottom edgeEdge-bottomright
: Place content at the bottom right edgeEdge-bottomfull
: Place content at the bottom edge, spanning the full widthThere are four left
edges.
Edge-lefttop
: Place content at the left top edgeEdge-left
: Place content at the left edgeEdge-leftbottom
: Place content at the left bottom edgeEdge-leftfull
: Place content at the left edge, spanning the full heightWe don’t rotate text when you use Edge-left
. Rotation here is done with the
Writing
style and is used purely for aesthetic purposes.
There are four right
edges.
Edge-righttop
: Place content at the right top edgeEdge-right
: Place content at the right edgeEdge-rightbottom
: Place content at the right bottom edgeEdge-rightfull
: Place content at the right edge, spanning the full heightWe don’t rotate text when you use Edge-right
. Rotation here is done with the
Writing
style and is used purely for aesthetic purposes.
You can use start
, center
and end
keywords to further the control the position of the element on the edge.
start
moves the element to the 50% to the left while end
moves the element 50% to the rightstart
moves the element to the 50% to the top while end
moves the element 50% to the bottomI’m kidding about the “nano”, but you can further control the edge position with --tx
and --ty
. Micro Edge Control simply manipulates these properties.
Splendid Labz is free because we love developers and we want to contribute back to the ecosystem.
We only charge for access to the documentation to keep the project going. If you don't wish to pay, feel free to use the content from the features tab, our blogs or our videos as your guide.
Edge
lets you place elements on the edge of a container. It must be used in a Stack
or Relative
container. If you use Tailwind, relative
works too.
To use Edge
, just choose one of the directional classes and apply it to the element.
There are four top
edges.
Edge-topleft
: Place content at the top left edgeEdge-top
: Place content at the top edgeEdge-topright
: Place content at the top right edgeEdge-topfull
: Place content at the top edge, spanning the full widthThere are four bottom
edges.
Edge-bottomleft
: Place content at the bottom left edgeEdge-bottom
: Place content at the bottom edgeEdge-bottomright
: Place content at the bottom right edgeEdge-bottomfull
: Place content at the bottom edge, spanning the full widthThere are four left
edges.
Edge-lefttop
: Place content at the left top edgeEdge-left
: Place content at the left edgeEdge-leftbottom
: Place content at the left bottom edgeEdge-leftfull
: Place content at the left edge, spanning the full heightWe don’t rotate text when you use Edge-left
. Rotation here is done with the
Writing
style and is used purely for aesthetic purposes.
There are four right
edges.
Edge-righttop
: Place content at the right top edgeEdge-right
: Place content at the right edgeEdge-rightbottom
: Place content at the right bottom edgeEdge-rightfull
: Place content at the right edge, spanning the full heightWe don’t rotate text when you use Edge-right
. Rotation here is done with the
Writing
style and is used purely for aesthetic purposes.
You can use start
, center
and end
keywords to further the control the position of the element on the edge.
start
moves the element to the 50% to the left while end
moves the element 50% to the rightstart
moves the element to the 50% to the top while end
moves the element 50% to the bottomI’m kidding about the “nano”, but you can further control the edge position with --tx
and --ty
. Micro Edge Control simply manipulates these properties.
The CSS for Edge
can be pretty complex because we supported both Stack
and Relative
for many positions.
Splendid Labz is free because we love developers and we want to contribute back to the ecosystem.
We only charge for access to the documentation to keep the project going. If you don't wish to pay, feel free to use the content from the features tab, our blogs or our videos as your guide.
The CSS for Edge
can be pretty complex because we supported both Stack
and Relative
for many positions.
Class | Description |
---|---|
Edge-topleft | Place content at the top left edge |
Edge-top | Place content at the top edge |
Edge-topright | Place content at the top right edge |
Edge-topfull | Place content at the top edge, spanning the full width |
Edge-lefttop | Place content at the left top edge |
Edge-left | Place content at the left edge |
Edge-leftbottom | Place content at the left bottom edge |
Edge-leftfull | Place content at the left edge, spanning the full height |
Edge-righttop | Place content at the right top edge |
Edge-right | Place content at the right edge |
Edge-rightbottom | Place content at the right bottom edge |
Edge-rightfull | Place content at the right edge, spanning the full height |
Edge-bottomleft | Place content at the bottom left edge |
Edge-bottom | Place content at the bottom edge |
Edge-bottomright | Place content at the bottom right edge |
Edge-bottomfull | Place content at the bottom edge, spanning the full width |
Class | Description |
---|---|
Edge-<position>-start | Micro movement of element to the start edge on the opposite axis |
Edge-<position>-center | Micro movement of element to center edge on the opposite axis |
Edge-<position>-end | Micro movement of element by end edge on the opposite axis |
Variable | Default | Description |
---|---|---|
--tx | 0 | Amount to shift element on the inline axis |
--ty | 0 | Amount to shift element on the block axis |
Splendid Labz is free because we love developers and we want to contribute back to the ecosystem.
We only charge for access to the documentation to keep the project going. If you don't wish to pay, feel free to use the content from the features tab, our blogs or our videos as your guide.
Class | Description |
---|---|
Edge-topleft | Place content at the top left edge |
Edge-top | Place content at the top edge |
Edge-topright | Place content at the top right edge |
Edge-topfull | Place content at the top edge, spanning the full width |
Edge-lefttop | Place content at the left top edge |
Edge-left | Place content at the left edge |
Edge-leftbottom | Place content at the left bottom edge |
Edge-leftfull | Place content at the left edge, spanning the full height |
Edge-righttop | Place content at the right top edge |
Edge-right | Place content at the right edge |
Edge-rightbottom | Place content at the right bottom edge |
Edge-rightfull | Place content at the right edge, spanning the full height |
Edge-bottomleft | Place content at the bottom left edge |
Edge-bottom | Place content at the bottom edge |
Edge-bottomright | Place content at the bottom right edge |
Edge-bottomfull | Place content at the bottom edge, spanning the full width |
Class | Description |
---|---|
Edge-<position>-start | Micro movement of element to the start edge on the opposite axis |
Edge-<position>-center | Micro movement of element to center edge on the opposite axis |
Edge-<position>-end | Micro movement of element by end edge on the opposite axis |
Variable | Default | Description |
---|---|---|
--tx | 0 | Amount to shift element on the inline axis |
--ty | 0 | Amount to shift element on the block axis |