docs: move reactive label to component prop name column

This commit is contained in:
Eric Liu 2020-11-20 09:39:25 -08:00
commit f1800bf332
2 changed files with 10 additions and 11 deletions

View file

@ -1,8 +1,8 @@
# carbon-components-svelte
> `carbon-components-svelte` is a Svelte component library that implements the [Carbon Design System](https://github.com/carbon-design-system), an open source design system by IBM.
carbon-components-svelte is a Svelte component library that implements the [Carbon Design System](https://github.com/carbon-design-system), an open source design system by IBM.
> A design system can facilitate frontend development and prototyping because it encourages reuse, consistency, and extensibility.
A design system can facilitate frontend development and prototyping because it encourages reuse, consistency, and extensibility.
[![NPM][npm]][npm-url]
[![Build][build]][build-badge]
@ -16,7 +16,7 @@
Install `carbon-components-svelte` as a development dependency.
```bash
```sh
yarn add -D carbon-components-svelte
# OR
npm i -D carbon-components-svelte

View file

@ -92,6 +92,13 @@
<StructuredListRow>
<StructuredListCell noWrap>
<InlineSnippet code="{prop.name}" />
{#if prop.reactive}
<div
style="white-space: nowrap; margin-top: var(--cds-spacing-03)"
>
<Tag type="cyan">Reactive</Tag>
</div>
{/if}
</StructuredListCell>
<StructuredListCell>
{#each prop.type.split(' | ') as type, i (type)}
@ -125,14 +132,6 @@
{/if}
</div>
{/each}
{#if prop.reactive}
<div
style="white-space: nowrap; margin-left: calc(-1 * var(--cds-spacing-03)); margin-top: var(--cds-spacing-05)"
>
<Tag type="green">Reactive</Tag>
</div>
{/if}
</StructuredListCell>
<StructuredListCell><code>{prop.value}</code></StructuredListCell>
<StructuredListCell>