mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
- add ref prop for applicable components (#196) - add slot to Content Switcher `Switch` component (#183) - remove fillArray, css utilities
18 lines
461 B
Svelte
18 lines
461 B
Svelte
<script>
|
|
export let stickyHeader = false;
|
|
export let title = "";
|
|
export let description = "";
|
|
</script>
|
|
|
|
<div
|
|
class:bx--data-table-container={true}
|
|
class:bx--data-table--max-width={stickyHeader}
|
|
{...$$restProps}>
|
|
{#if title}
|
|
<div class:bx--data-table-header={true}>
|
|
<h4 class:bx--data-table-header__title={true}>{title}</h4>
|
|
<p class:bx--data-table-header__description={true}>{description}</p>
|
|
</div>
|
|
{/if}
|
|
<slot />
|
|
</div>
|