A collection of Emotion utility functions.
|
Function |
Description |
|---|---|
|
Create function that applies styles when viewport width is greater than or equal to and/or less than the specified breakpoints. | |
|
Returns | |
|
Create grid container with provided | |
|
Apply provided styles on hover. | |
|
Equivalent to the inset-inline-end CSS property. | |
|
Equivalent to the inset-inline-start CSS property. | |
|
lineClampedText({ fontSize, height, lineCount, lineHeight, }) |
Clamp with ellipsis when text extends past the provided number of lines. |
|
Equivalent to the margin-block CSS property. | |
|
Equivalent to the margin-inline CSS property. | |
|
Equivalent to the padding-block CSS property. | |
|
transitionDurationWithPrefersReducedMotion(transitionDuration) |
Set a transition duration with override to 0 if the user has enabled an OS/browser setting to request sites to reduce motion. |
|
Variable |
Description |
|---|---|
|
Hide when JavaScript loaded. | |
|
Hide when JavaScript not loaded. | |
|
Hide when pointer media feature is | |
|
Hide when pointer media feature is | |
|
Visually hide element while keeping it accessible to keyboard and screen reader navigation. |
|
Type Alias |
Description |
|---|---|
|
Emotion |