Inset
Applies a negative margin to allow content to bleed into the surrounding container.
Basic Example
Nesting an Inset component inside a Card will render the content from edge to edge of the card.
Reflex is a web framework that allows developers to build their app in pure Python.
Other Directions
The side
prop controls which side the negative margin is applied to. When using a specific side,
it is helpful to set the padding for the opposite side to current
to retain the same padding the
content would have had if it went to the edge of the parent component.
The inset below uses a bottom side.
This inset uses a right side, which requires a flex with direction row.
This inset uses a left side, which also requires a flex with direction row.
API Reference
rx.inset
Applies a negative margin to allow content to bleed into the surrounding container.