mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
docs(notification): remove note on minimum Svelte version
This banner is redundant since the minimum Svelte version is displayed in the README and on the home page of the docs.
This commit is contained in:
parent
04933489ae
commit
01ecfb4b11
2 changed files with 1 additions and 13 deletions
|
@ -16,12 +16,6 @@ source: Notification/InlineNotification.svelte
|
|||
|
||||
`InlineNotification` is a controlled component. Prevent the default close behavior using the `e.preventDefault()` method in the dispatched `on:close` event.
|
||||
|
||||
<InlineNotification svx-ignore lowContrast title="Note:" kind="info" hideCloseButton>
|
||||
<div class="body-short-01">
|
||||
Svelte version 3.48.0 or greater is required.
|
||||
</div>
|
||||
</InlineNotification>
|
||||
|
||||
<InlineNotification title="Error" subtitle="An internal server error occurred." on:close={(e) => {
|
||||
e.preventDefault();
|
||||
// custom close logic (e.g., transitions)
|
||||
|
|
|
@ -3,7 +3,7 @@ source: Notification/ToastNotification.svelte
|
|||
---
|
||||
|
||||
<script>
|
||||
import { ToastNotification, InlineNotification } from "carbon-components-svelte";
|
||||
import { ToastNotification } from "carbon-components-svelte";
|
||||
import Preview from "../../components/Preview.svelte";
|
||||
</script>
|
||||
|
||||
|
@ -15,12 +15,6 @@ source: Notification/ToastNotification.svelte
|
|||
|
||||
`ToastNotification` is a controlled component. Prevent the default close behavior using the `e.preventDefault()` method in the dispatched `on:close` event.
|
||||
|
||||
<InlineNotification svx-ignore lowContrast title="Note:" kind="info" hideCloseButton>
|
||||
<div class="body-short-01">
|
||||
Svelte version 3.48.0 or greater is required.
|
||||
</div>
|
||||
</InlineNotification>
|
||||
|
||||
<ToastNotification title="Error" subtitle="An internal server error occurred." caption="{new Date().toLocaleString()}" on:close={(e) => {
|
||||
e.preventDefault();
|
||||
// custom close logic (e.g., transitions)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue