mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
chore: lift components folder
This commit is contained in:
parent
76df51674d
commit
2200b29b92
301 changed files with 57 additions and 76 deletions
32
src/StructuredList/StructuredListRow.svelte
Normal file
32
src/StructuredList/StructuredListRow.svelte
Normal file
|
@ -0,0 +1,32 @@
|
|||
<script>
|
||||
export let head = false;
|
||||
export let label = false;
|
||||
export let tabindex = "0";
|
||||
</script>
|
||||
|
||||
{#if label}
|
||||
<label
|
||||
role="presentation"
|
||||
{tabindex}
|
||||
class:bx--structured-list-row={true}
|
||||
class:bx--structured-list-row--header-row={head}
|
||||
{...$$restProps}
|
||||
on:click
|
||||
on:mouseover
|
||||
on:mouseenter
|
||||
on:mouseleave
|
||||
on:keydown>
|
||||
<slot />
|
||||
</label>
|
||||
{:else}
|
||||
<div
|
||||
class:bx--structured-list-row={true}
|
||||
class:bx--structured-list-row--header-row={head}
|
||||
{...$$restProps}
|
||||
on:click
|
||||
on:mouseover
|
||||
on:mouseenter
|
||||
on:mouseleave>
|
||||
<slot />
|
||||
</div>
|
||||
{/if}
|
Loading…
Add table
Add a link
Reference in a new issue