Skip to content

@tw-classed/core@1.7.0

Compare
Choose a tag to compare
@github-actions github-actions released this 13 Dec 21:25
· 15 commits to master since this release
7faa180

Minor Changes

  • #132 6fd3d61 Thanks @sannajammeh! - Add getVariantConfig() utility to core & react api's. This extracts the entire parsed variant config from a classed component, also supports nested variants from component composition.

    Usage:

    const Button = classed("button", {
      variants: {
        color: {
          blue: "bg-blue-500",
        },
      },
    });
    
    const { variants } = getVariantConfig(Button);
    variants.color.blue; // "bg-blue-500"

Patch Changes