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
23
src/Notification/NotificationTextDetails.svelte
Normal file
23
src/Notification/NotificationTextDetails.svelte
Normal file
|
@ -0,0 +1,23 @@
|
|||
<script>
|
||||
export let notificationType = "toast"; // "toast" | "inline"
|
||||
export let title = "title";
|
||||
export let subtitle = "";
|
||||
export let caption = "caption";
|
||||
</script>
|
||||
|
||||
{#if notificationType === 'toast'}
|
||||
<div class:bx--toast-notification__details={true}>
|
||||
<h3 class:bx--toast-notification__title={true}>{title}</h3>
|
||||
<div class:bx--toast-notification__subtitle={true}>{subtitle}</div>
|
||||
<div class:bx--toast-notification__caption={true}>{caption}</div>
|
||||
<slot />
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{#if notificationType === 'inline'}
|
||||
<div class:bx--inline-notification__text-wrapper={true}>
|
||||
<p class:bx--inline-notification__title={true}>{title}</p>
|
||||
<div class:bx--inline-notification__subtitle={true}>{subtitle}</div>
|
||||
<slot />
|
||||
</div>
|
||||
{/if}
|
Loading…
Add table
Add a link
Reference in a new issue