Skip to content

Commit 0172ed5

Browse files
Fixes #1757 - Add migration docs
1 parent 33b424a commit 0172ed5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

migrate-the-clay-components-from-v2-to-v3.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,13 @@ Using a radio by itself doesn't make much sense, only when 2+ exist does the fun
119119
<ClayRadioGroup.Radio label="Three" value="three" />
120120
</ClayRadioGroup>
121121
```
122+
123+
## ClayLabel
124+
125+
### API Changes
126+
127+
- `style` is now `displayType`
128+
- Removed `size` in favor of `large` since there is only default and large options.
129+
- Removed `label` in favor of utilizing `children` prop
130+
- Added `closeButtonProps` which allows you to add attributes to the nested button.
131+
- This is where you would pass a callback for `onClick`.

0 commit comments

Comments
 (0)