carbon-components-svelte/src/StructuredList/StructuredListCell.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>