mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
25 lines
485 B
Svelte
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>
|