Skip to content

v2.4.0

Choose a tag to compare

@github-actions github-actions released this 07 May 10:11
· 183 commits to main since this release
a12b361

Minor Changes

  • #176 f3ee259 Thanks @tenphi! - Allow tasty(Component, options) to wrap any React component that forwards
    className (Next.js Link, react-router Link, Radix primitives, MUI,
    plain forwardRef/memo, …). Tasty-produced components are now branded
    internally and continue to use the prop-forwarding path with their full
    styles/mods/tokens pipeline; non-branded components are styled via
    their className prop, while Tasty-specific props (qa, qaVal, mods,
    tokens, isDisabled, isHidden, isChecked, plus declared
    styleProps/modProps/tokenProps) are consumed by the wrapper and
    converted to data-* attributes or CSS custom properties instead of
    leaking to the DOM. As a side benefit, passing a string tag as the first
    argument (tasty('div', { styles })) now works too.

Patch Changes

  • #176 5180130 Thanks @tenphi! - Allow styleProps, variants, modProps, and tokenProps in the
    tasty(Component, options) wrap overload — previously these were typed as
    never, which forced consumers to cast Component as any even though the
    runtime already supported these options.