You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Minor Changes
#176f3ee259 Thanks @tenphi! - Allow tasty(Component, options) to wrap any React component that forwards className (Next.js Link, react-routerLink, 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
#1765180130 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.