mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
25 lines
479 B
Svelte
25 lines
479 B
Svelte
<script>
|
|
/**
|
|
* Set to `true` to use as a header
|
|
* @type {boolean} [head=false]
|
|
*/
|
|
export let head = false;
|
|
|
|
/**
|
|
* Set to `true` to prevent wrapping
|
|
* @type {boolean} [noWrap=false]
|
|
*/
|
|
export let noWrap = false;
|
|
</script>
|
|
|
|
<div
|
|
class:bx--structured-list-th={head}
|
|
class:bx--structured-list-td={!head}
|
|
class:bx--structured-list-content--nowrap={noWrap}
|
|
{...$$restProps}
|
|
on:click
|
|
on:mouseover
|
|
on:mouseenter
|
|
on:mouseleave>
|
|
<slot />
|
|
</div>
|