composeAtom
Similar to addAtom
, You can create your own Atomic Props with composeAtom
, the difference is that composeAtom
will not create a new Atomic Props, it just composes existed Atomic Porps.
Usage
import { composeAtom } from '@fower/core'
composeAtom('formInput', {
'border-2': true,
borderGray200: true,
'borderOrange400--focus': true,
rounded: true,
outlineNone: true,
px4: true,
py2: true,
})
now you can use it:
Result
Loading...
Live Editor