@tw-classed/solid
1.7.1
Patch Changes
a084f87
(opens in a new tab) Thanks @sannajammeh (opens in a new tab)! - Ensure solid exports match dist output
1.7.0
Patch Changes
-
#137 (opens in a new tab)
86acac6
(opens in a new tab) Thanks @sannajammeh (opens in a new tab)! - Improve solidjs prop splitting -
#135 (opens in a new tab)
f04cc69
(opens in a new tab) Thanks @sannajammeh (opens in a new tab)! - Fix solid types - Rename Polymorphic.d.ts to polymorphic.ts to ensure dts plugin emits in bundle -
Updated dependencies [
97130ec
(opens in a new tab),6fd3d61
(opens in a new tab)]:- @tw-classed/core@1.7.0
1.7.0-canary.2
Patch Changes
- #137 (opens in a new tab)
86acac6
(opens in a new tab) Thanks @sannajammeh (opens in a new tab)! - Improve solidjs prop splitting
1.7.0-canary.1
Patch Changes
- #135 (opens in a new tab)
f04cc69
(opens in a new tab) Thanks @sannajammeh (opens in a new tab)! - Fix solid types - Rename Polymorphic.d.ts to polymorphic.ts to ensure dts plugin emits in bundle
1.7.0-canary.0
Patch Changes
- Updated dependencies [
97130ec
(opens in a new tab),6fd3d61
(opens in a new tab)]:- @tw-classed/core@1.7.0-canary.0
1.6.0
Patch Changes
- Updated dependencies [
e3b9d61e
(opens in a new tab)]:- @tw-classed/core@1.6.0
1.5.2
Patch Changes
-
#119 (opens in a new tab)
67ec8d98
(opens in a new tab) Thanks @sannajammeh (opens in a new tab)! - This release exports the default merger ascx
, adds additional test cases for cx & react props, bumps all packages to latest -
Updated dependencies [
67ec8d98
(opens in a new tab)]:- @tw-classed/core@1.5.2
1.5.1
Patch Changes
- Updated dependencies [
52abded9
(opens in a new tab)]:- @tw-classed/core@1.5.1
1.5.0
Minor Changes
-
#105 (opens in a new tab)
233bddfd
(opens in a new tab) Thanks @Xiot (opens in a new tab)! - Adds support for matched variants to appear as dataAttributesExample
const Button = classed("button", { variants: { color: { blue: "bg-blue-100", red: "bg-red-100", }, }, defaultVariants: { color: "red", }, dataAttributes: ["color"], }); <Button color="blue" /> // Rendered html will be <button data-color="blue" /> <Button> // Rendered html will be <button data-color="red /> // From default variants
Patch Changes
- Updated dependencies [
233bddfd
(opens in a new tab)]:- @tw-classed/core@1.5.0
1.5.0-canary.0
Minor Changes
-
#105 (opens in a new tab)
233bddfd
(opens in a new tab) Thanks @Xiot (opens in a new tab)! - Adds support for matched variants to appear as dataAttributesExample
const Button = classed("button", { variants: { color: { blue: "bg-blue-100", red: "bg-red-100", }, }, defaultVariants: { color: "red", }, dataAttributes: ["color"], }); <Button color="blue" /> // Rendered html will be <button data-color="blue" /> <Button> // Rendered html will be <button data-color="red /> // From default variants
Patch Changes
- Updated dependencies [
233bddfd
(opens in a new tab)]:- @tw-classed/core@1.5.0-canary.0
1.4.4
Patch Changes
- Updated dependencies [
f19df61f
(opens in a new tab)]:- @tw-classed/core@1.4.4
1.4.0
Patch Changes
-
#70 (opens in a new tab)
a5763359
(opens in a new tab) Thanks @sannajammeh (opens in a new tab)! - Add Solid.js library@tw-classed/solid
is a library that allows you to create classed components inSolid.js
. It has 1-1 API parity with@tw-classed/react
, but with Solid specific internals. Follow the React guide to learn more about the API.import { classed } from "@tw-classed/solid"; const Button = classed.button("bg-blue-500 text-white p-2 rounded"); () => <Button>Click me</Button>;
-
Updated dependencies [
785bcaaa
(opens in a new tab),0f5f46fa
(opens in a new tab)]:- @tw-classed/core@1.4.0
1.4.0-canary.5
Patch Changes
- Updated dependencies [
785bcaaa
(opens in a new tab)]:- @tw-classed/core@1.4.0-canary.5
1.4.0-canary.1
Patch Changes
- Updated dependencies [
0f5f46fa
(opens in a new tab)]:- @tw-classed/core@1.4.0-canary.1
1.3.2-canary.0
Patch Changes
-
#70 (opens in a new tab)
a5763359
(opens in a new tab) Thanks @sannajammeh (opens in a new tab)! - Add Solid.js library@tw-classed/solid
is a library that allows you to create classed components inSolid.js
. It has 1-1 API parity with@tw-classed/react
, but with Solid specific internals. Follow the React guide to learn more about the API.import { classed } from "@tw-classed/solid"; const Button = classed.button("bg-blue-500 text-white p-2 rounded"); () => <Button>Click me</Button>;