The Wayback Machine - https://web.archive.org/web/20210813005742/https://github.com/topics/emotion
Skip to content
#

emotion

Here are 903 public repositories matching this topic...

theme-ui
lhguerra
lhguerra commented Jul 13, 2021

I'm currently implementing a news list with an image in each item, and these images have 4:3 ratio in mobile devices and 16:9 ratio in desktop devices. Would it be possible or even make sense for the Aspect and AspectImage components to handle this kind of thing? I imagine an API like this:

<AspectImage {...imageProps} ratio={[4/3, 16/9]} />

Where each item in this array of ratios woul

astgermain
astgermain commented Dec 16, 2020

Animations can easily be reversed for cleanup using state to set the value of a reverse prop and is already implemented but it is not stated in documentation even though it works.

Example:

const [shown, setShown] = useState(false)
const yeetMenu = () => {
    setShown(!shown)
}
<Slide
      duration={500}
      triggerOnce={true}
      direction="right"
      reverse={shown}

Improve this page

Add a description, image, and links to the emotion topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the emotion topic, visit your repo's landing page and select "manage topics."

Learn more