Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

tx

Combines tw and cx.

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;