mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 20:33:02 +00:00
docs: use tabs for installation commands
This commit is contained in:
parent
a9ebb05280
commit
f79b63a2d2
1 changed files with 20 additions and 12 deletions
|
@ -91,18 +91,26 @@
|
||||||
<Row style="margin-bottom: var(--cds-layout-02)">
|
<Row style="margin-bottom: var(--cds-layout-02)">
|
||||||
<Column>
|
<Column>
|
||||||
<h3>Installation</h3>
|
<h3>Installation</h3>
|
||||||
<h4>Using Yarn:</h4>
|
</Column>
|
||||||
<Row noGutter>
|
</Row>
|
||||||
<CodeSnippet code="{installYarn}" />
|
<Row style="margin-bottom: var(--cds-layout-02)">
|
||||||
</Row>
|
<Column noGutter>
|
||||||
<h4>Using NPM:</h4>
|
<Tabs>
|
||||||
<Row noGutter>
|
<Tab label="Yarn" />
|
||||||
<CodeSnippet code="{installNpm}" />
|
<Tab label="NPM" />
|
||||||
</Row>
|
<Tab label="pnpm" />
|
||||||
<h4>Using pnpm:</h4>
|
<div slot="content" style="margin: 1rem -1rem">
|
||||||
<Row noGutter>
|
<TabContent>
|
||||||
<CodeSnippet code="{installPnpm}" />
|
<CodeSnippet code="{installYarn}" />
|
||||||
</Row>
|
</TabContent>
|
||||||
|
<TabContent>
|
||||||
|
<CodeSnippet code="{installNpm}" />
|
||||||
|
</TabContent>
|
||||||
|
<TabContent>
|
||||||
|
<CodeSnippet code="{installPnpm}" />
|
||||||
|
</TabContent>
|
||||||
|
</div>
|
||||||
|
</Tabs>
|
||||||
</Column>
|
</Column>
|
||||||
</Row>
|
</Row>
|
||||||
<Row style="margin-bottom: var(--cds-layout-04)">
|
<Row style="margin-bottom: var(--cds-layout-04)">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue