carbon-components-svelte/src/StructuredList/StructuredListCell.svelte
2020-09-04 16:35:49 -07:00

25 lines
485 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>