tx
Using the default tw
instance:
import { tw } from '@twind/core'
tx`underline ${falsy && 'italic'}`
tx('underline', falsy && 'italic')
tx({'underline': true, 'italic': false})
// using a custom twind instance
import { tw } from './custom/twind'
import { tw } from './custom/twind'
tx.bind(tw)
Using a custom tw
instance:
import { tx as tx$ } from '@twind/core'
import { tw } from './custom/twind'
export const tx = tx$.bind(tw)
tx`underline ${falsy && 'italic'}`
tx('underline', falsy && 'italic')
tx({'underline': true, 'italic': false})
const tx: TxFunction;