docs: use tabs for installation commands

This commit is contained in:
metonym 2022-02-28 16:17:07 -08:00
commit f79b63a2d2

View file

@ -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)">