mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
20 lines
467 B
Svelte
20 lines
467 B
Svelte
<script>
|
|
let className = undefined;
|
|
export { className as class };
|
|
export let head = false;
|
|
export let noWrap = false;
|
|
export let style = undefined;
|
|
|
|
import { cx } from '../../lib';
|
|
|
|
const _class = cx(
|
|
head && '--structured-list-th',
|
|
!head && '--structured-list-td',
|
|
noWrap && '--structured-list-content--nowrap',
|
|
className
|
|
);
|
|
</script>
|
|
|
|
<div on:click on:mouseover on:mouseenter on:mouseleave class={_class} {style}>
|
|
<slot />
|
|
</div>
|