Main_Logoelterv1.0.5
⌘ K

On this page

elter.create

Create a method that takes the key as a className.
Since this method is created almost only once, we recommend using css as the variable name.

Write create and compile

A hashed prefix of the object is added to the class name, so styles do not conflicts between different components.

Something.tsx
import elter from 'elter'
 
const styles = elter.create({
  container: {
    display: 'flex',
    justifyContent: 'space-between'
  },
  link: {
    fontSize: '14px',
    textDecoration: 'none'
  },
})