mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
Closes #720
This commit is contained in:
parent
ae27bedf4c
commit
5fee13b2eb
5 changed files with 91 additions and 1 deletions
|
@ -202,7 +202,19 @@
|
|||
}
|
||||
</script>
|
||||
|
||||
<TableContainer title="{title}" description="{description}" {...$$restProps}>
|
||||
<TableContainer {...$$restProps}>
|
||||
<div class:bx--data-table-header="{true}">
|
||||
{#if title || $$slots.title}
|
||||
<h4 class:bx--data-table-header__title="{true}">
|
||||
<slot name="title">{title}</slot>
|
||||
</h4>
|
||||
{/if}
|
||||
{#if description || $$slots.description}
|
||||
<p class:bx--data-table-header__description="{true}">
|
||||
<slot name="description">{description}</slot>
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
<slot />
|
||||
<Table
|
||||
zebra="{zebra}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue