mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
test: add TS types
This commit is contained in:
parent
302e82d6a2
commit
eed617433b
126 changed files with 3378 additions and 226 deletions
43
tests/InlineNotification.test.svelte
Normal file
43
tests/InlineNotification.test.svelte
Normal file
|
@ -0,0 +1,43 @@
|
|||
<script lang="ts">
|
||||
import { InlineNotification, NotificationActionButton } from "../types";
|
||||
</script>
|
||||
|
||||
<InlineNotification on:close />
|
||||
|
||||
<InlineNotification
|
||||
hideCloseButton
|
||||
kind="warning"
|
||||
title="Upcoming scheduled maintenance"
|
||||
/>
|
||||
|
||||
<InlineNotification kind="warning" title="Upcoming scheduled maintenance">
|
||||
<div slot="actions">
|
||||
<NotificationActionButton>Learn more</NotificationActionButton>
|
||||
</div>
|
||||
</InlineNotification>
|
||||
|
||||
<NotificationActionButton>Learn more</NotificationActionButton>
|
||||
|
||||
<InlineNotification kind="error" />
|
||||
|
||||
<InlineNotification kind="info" />
|
||||
|
||||
<InlineNotification kind="info-square" />
|
||||
|
||||
<InlineNotification kind="success" />
|
||||
|
||||
<InlineNotification kind="warning" />
|
||||
|
||||
<InlineNotification kind="warning-alt" />
|
||||
|
||||
<InlineNotification lowContrast kind="error" />
|
||||
|
||||
<InlineNotification lowContrast kind="info" />
|
||||
|
||||
<InlineNotification lowContrast kind="info-square" />
|
||||
|
||||
<InlineNotification lowContrast kind="success" />
|
||||
|
||||
<InlineNotification lowContrast kind="warning" />
|
||||
|
||||
<InlineNotification lowContrast kind="warning-alt" />
|
Loading…
Add table
Add a link
Reference in a new issue