docs: specify minimum Svelte version requirement

This commit is contained in:
metonym 2022-06-29 11:49:23 -07:00
commit f59daa20a2
2 changed files with 12 additions and 2 deletions

View file

@ -31,6 +31,8 @@ Other forms of documentation are auto-generated:
Install `carbon-components-svelte` as a development dependency. Install `carbon-components-svelte` as a development dependency.
A minimum Svelte version of 3.48.0 is required to use this library.
```sh ```sh
# Yarn # Yarn
yarn add -D carbon-components-svelte yarn add -D carbon-components-svelte

View file

@ -12,6 +12,7 @@
OutboundLink, OutboundLink,
RadioButtonGroup, RadioButtonGroup,
RadioButton, RadioButton,
InlineNotification,
} from "carbon-components-svelte"; } from "carbon-components-svelte";
import TileCard from "../components/TileCard.svelte"; import TileCard from "../components/TileCard.svelte";
import { theme } from "../store"; import { theme } from "../store";
@ -89,8 +90,15 @@
</Column> </Column>
</Row> </Row>
<Row style="margin-bottom: var(--cds-layout-02)"> <Row style="margin-bottom: var(--cds-layout-02)">
<Column> <Column max="{10}" xlg="{10}">
<h3>Installation</h3> <h3 style="margin-top: var(--cds-layout-02)">Installation</h3>
<InlineNotification
style="max-width: calc(48rem - 1rem);"
kind="info"
subtitle="A minimum Svelte version of 3.48.0 is required to use this library."
lowContrast
hideCloseButton
/>
</Column> </Column>
</Row> </Row>
<Row style="margin-bottom: var(--cds-layout-02)"> <Row style="margin-bottom: var(--cds-layout-02)">