Make Toggle labels slottable (#1002)

* feat(toggle): support slottable labels

* yarn build:lib

* docs(toggle): add "Slottable labels" example
This commit is contained in:
Eric Liu 2022-01-12 16:43:27 -10:00 committed by GitHub
commit 32edfa59dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 30 additions and 3 deletions

View file

@ -4426,6 +4426,8 @@ export type CarbonTheme = "white" | "g10" | "g80" | "g90" | "g100";
| Slot name | Default | Props | Fallback |
| :-------- | :------ | :---- | :----------------------- |
| labelA | No | -- | <code>{labelA}</code> |
| labelB | No | -- | <code>{labelB}</code> |
| labelText | No | -- | <code>{labelText}</code> |
### Events