Skip to content

Releases: sannajammeh/tw-classed

@tw-classed/[email protected]

13 Dec 21:34
1f09a10
Compare
Choose a tag to compare

Patch Changes

@tw-classed/[email protected]

13 Dec 21:26
7faa180
Compare
Choose a tag to compare

Patch Changes

@tw-classed/[email protected]

13 Dec 21:25
7faa180
Compare
Choose a tag to compare

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

@tw-classed/[email protected]

13 Dec 21:25
7faa180
Compare
Choose a tag to compare

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

@tw-classed/[email protected]

13 Dec 19:04
718fe50
Compare
Choose a tag to compare
Pre-release

Patch Changes

@tw-classed/[email protected]

13 Dec 16:16
748c699
Compare
Choose a tag to compare
Pre-release

Patch Changes

  • #135 f04cc69 Thanks @sannajammeh! - Fix solid types - Rename Polymorphic.d.ts to polymorphic.ts to ensure dts plugin emits in bundle

@tw-classed/[email protected]

13 Dec 15:50
08de2b0
Compare
Choose a tag to compare
Pre-release

Patch Changes

@tw-classed/[email protected]

13 Dec 15:50
08de2b0
Compare
Choose a tag to compare
Pre-release

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

@tw-classed/[email protected]

13 Dec 15:50
08de2b0
Compare
Choose a tag to compare
Pre-release

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

@tw-classed/[email protected]

25 Oct 01:38
7e32c17
Compare
Choose a tag to compare

Patch Changes