mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
19 lines
324 B
Svelte
19 lines
324 B
Svelte
<script>
|
|
let className = undefined;
|
|
export { className as class };
|
|
export let id = Math.random();
|
|
export let style = undefined;
|
|
|
|
import { cx } from '../../lib';
|
|
</script>
|
|
|
|
<label
|
|
on:click
|
|
on:mouseover
|
|
on:mouseenter
|
|
on:mouseleave
|
|
for={id}
|
|
class={cx('--label', className)}
|
|
{style}>
|
|
<slot />
|
|
</label>
|