@tw-classed/core@1.7.0
github-actions
released this
13 Dec 21:25
·
15 commits
to master
since this release
Minor Changes
-
#132
6fd3d61
Thanks @sannajammeh! - AddgetVariantConfig()
utility tocore
&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
- #133
97130ec
Thanks @sannajammeh! - Ensure compatibility withexactOptionalPropertyTypes:true
in tsconfig.json