mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
docs: drop -D flag from install commands
This commit is contained in:
parent
951d686042
commit
67673d5161
6 changed files with 12 additions and 12 deletions
|
@ -32,13 +32,13 @@ Install `carbon-components-svelte` as a development dependency.
|
|||
|
||||
```sh
|
||||
# Yarn
|
||||
yarn add -D carbon-components-svelte
|
||||
yarn add carbon-components-svelte
|
||||
|
||||
# npm
|
||||
npm i -D carbon-components-svelte
|
||||
npm i carbon-components-svelte
|
||||
|
||||
# pnpm
|
||||
pnpm i -D carbon-components-svelte
|
||||
pnpm i carbon-components-svelte
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
|
|
@ -36,7 +36,7 @@ You can override the default copy functionality with your own implementation. Se
|
|||
|
||||
## Default (single-line)
|
||||
|
||||
<CodeSnippet code="yarn add -D carbon-components-svelte" />
|
||||
<CodeSnippet code="yarn add carbon-components-svelte" />
|
||||
|
||||
## Overriding copy functionality
|
||||
|
||||
|
@ -50,7 +50,7 @@ In this example, we use the open source module [clipboard-copy](https://github.c
|
|||
|
||||
To prevent text from being copied entirely, pass a no-op function to the `copy` prop.
|
||||
|
||||
<CodeSnippet code="yarn add -D carbon-components-svelte" copy={() => {}} />
|
||||
<CodeSnippet code="yarn add carbon-components-svelte" copy={() => {}} />
|
||||
|
||||
## Inline
|
||||
|
||||
|
@ -104,7 +104,7 @@ Use the `showMoreText` and `showLessText` props to override the default "Show mo
|
|||
|
||||
The `disabled` prop applies only to the `"single"` and `"multi"` code snippet types.
|
||||
|
||||
<CodeSnippet disabled code="yarn add -D carbon-components-svelte" />
|
||||
<CodeSnippet disabled code="yarn add carbon-components-svelte" />
|
||||
<br />
|
||||
<CodeSnippet disabled type="multi" code="{comment}" />
|
||||
|
||||
|
|
|
@ -4,6 +4,6 @@
|
|||
</script>
|
||||
|
||||
<CodeSnippet
|
||||
code="yarn add -D carbon-components-svelte"
|
||||
code="yarn add carbon-components-svelte"
|
||||
copy="{(text) => copy(text)}"
|
||||
/>
|
||||
|
|
|
@ -21,9 +21,9 @@
|
|||
metatags.description =
|
||||
"The Svelte implementation of the Carbon Design System featuring UI components, icons, pictograms, and charts.";
|
||||
|
||||
const installYarn = "yarn add -D carbon-components-svelte";
|
||||
const installNpm = "npm i -D carbon-components-svelte";
|
||||
const installPnpm = "pnpm i -D carbon-components-svelte";
|
||||
const installYarn = "yarn add carbon-components-svelte";
|
||||
const installNpm = "npm i carbon-components-svelte";
|
||||
const installPnpm = "pnpm i carbon-components-svelte";
|
||||
const themes = {
|
||||
white: "White",
|
||||
g10: "Gray 10",
|
||||
|
|
|
@ -17,5 +17,5 @@
|
|||
on:expand
|
||||
on:collapse
|
||||
>
|
||||
yarn add -D carbon-components-svelte
|
||||
yarn add carbon-components-svelte
|
||||
</CodeSnippet>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<script lang="ts">
|
||||
export let copy = (text: string) => text;
|
||||
export let code = "yarn add -D carbon-component-svelte";
|
||||
export let code = "yarn add carbon-component-svelte";
|
||||
|
||||
import { CodeSnippet } from "../types";
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue