mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 19:01:05 +00:00
- add ref prop for applicable components (#196) - add slot to Content Switcher `Switch` component (#183) - remove fillArray, css utilities
14 lines
216 B
Svelte
14 lines
216 B
Svelte
<script>
|
|
export let id = "ccs-" + Math.random().toString(36);
|
|
</script>
|
|
|
|
<label
|
|
class:bx--label={true}
|
|
for={id}
|
|
{...$$restProps}
|
|
on:click
|
|
on:mouseover
|
|
on:mouseenter
|
|
on:mouseleave>
|
|
<slot />
|
|
</label>
|