Skip to content

Commit

Permalink
chore: changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
sannajammeh committed Oct 24, 2023
1 parent cdf8ee5 commit e3b9d61
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .changeset/pink-dolls-confess.md
@@ -0,0 +1,19 @@
---
"@tw-classed/react": minor
"@tw-classed/core": minor
---

- (Feat): Add support for defaultProps in React api
Components can now have default props in the React api

```tsx
const Button = classed.button({
defaultProps: {
someProp: "someValue",
},
});
```

This change is considered unstable, for now defaultProps will not populate when using composition nor affect variants or classname generation.

- (Fix): Data attributes are now correctly generated for composition

0 comments on commit e3b9d61

Please sign in to comment.