Skip to content

Support css property #6

@sastan

Description

@sastan

The css property could be used to pass arbitrary CSS objects.

<span css={{ color: theme('colors', 'blue.500') }}>Blue</span>

Output

import { tw as _tw, directive as _directive } from 'twind'

const _identity = (value) => value

// Indirection is for caching
const _css = (object) => _directive(_identity, object)

<span className={_tw`${_css({ color: theme('colors', 'blue.500') })}`}>Blue</span>

References:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions