mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
parent
f672cad940
commit
54a8d1630e
4 changed files with 15 additions and 4 deletions
|
@ -440,7 +440,9 @@ None.
|
|||
|
||||
### Slots
|
||||
|
||||
None.
|
||||
| Slot name | Default | Props | Fallback |
|
||||
| :-------- | :------ | :---- | :----------------------- |
|
||||
| labelText | No | -- | <code>{labelText}</code> |
|
||||
|
||||
### Events
|
||||
|
||||
|
|
|
@ -715,7 +715,14 @@
|
|||
"reactive": true
|
||||
}
|
||||
],
|
||||
"slots": [],
|
||||
"slots": [
|
||||
{
|
||||
"name": "labelText",
|
||||
"default": false,
|
||||
"fallback": "{labelText}",
|
||||
"slot_props": "{}"
|
||||
}
|
||||
],
|
||||
"events": [
|
||||
{ "type": "dispatched", "name": "check", "detail": "boolean" },
|
||||
{ "type": "forwarded", "name": "click", "element": "CheckboxSkeleton" },
|
||||
|
|
|
@ -85,7 +85,9 @@
|
|||
class:bx--checkbox-label-text="{true}"
|
||||
class:bx--visually-hidden="{hideLabel}"
|
||||
>
|
||||
{labelText}
|
||||
<slot name="labelText">
|
||||
{labelText}
|
||||
</slot>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
|
|
2
types/Checkbox/Checkbox.d.ts
vendored
2
types/Checkbox/Checkbox.d.ts
vendored
|
@ -78,5 +78,5 @@ export default class Checkbox extends SvelteComponentTyped<
|
|||
mouseleave: WindowEventMap["mouseleave"];
|
||||
change: WindowEventMap["change"];
|
||||
},
|
||||
{}
|
||||
{ labelText: {} }
|
||||
> {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue