mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
docs: add new component docs
This commit is contained in:
parent
c2fb2d213d
commit
2008d0035f
130 changed files with 6662 additions and 3801 deletions
42
docs/src/pages/components/InlineNotification.svx
Normal file
42
docs/src/pages/components/InlineNotification.svx
Normal file
|
@ -0,0 +1,42 @@
|
|||
---
|
||||
source: Notification/InlineNotification.svelte
|
||||
---
|
||||
|
||||
<script>
|
||||
import { InlineNotification, NotificationActionButton } from "carbon-components-svelte";
|
||||
import Preview from "../../components/Preview.svelte";
|
||||
</script>
|
||||
|
||||
### Default (error)
|
||||
|
||||
<InlineNotification on:close />
|
||||
|
||||
### Hidden close button
|
||||
|
||||
<InlineNotification hideCloseButton kind="warning" title="Upcoming scheduled maintenance" />
|
||||
|
||||
### With actions
|
||||
|
||||
<InlineNotification kind="warning" title="Upcoming scheduled maintenance">
|
||||
<div slot="actions">
|
||||
<NotificationActionButton>Learn more</NotificationActionButton>
|
||||
</div>
|
||||
</InlineNotification>
|
||||
|
||||
### Notification variants
|
||||
|
||||
<InlineNotification kind="error" />
|
||||
<InlineNotification kind="info" />
|
||||
<InlineNotification kind="info-square" />
|
||||
<InlineNotification kind="success" />
|
||||
<InlineNotification kind="warning" />
|
||||
<InlineNotification kind="warning-alt" />
|
||||
|
||||
### Low contrast
|
||||
|
||||
<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