Skip to content

Commit

Permalink
doc: add examples of tags
Browse files Browse the repository at this point in the history
  • Loading branch information
elevatebart committed Sep 3, 2024
1 parent 1b8bc35 commit 76d10d0
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
18 changes: 18 additions & 0 deletions components/Tag/ReadMe.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,29 @@
<script lang="ts" setup>
import { CssSize, CssColor } from '@cypress-design/constants-tag'
import Tag from '@cypress-design/vue-tag'
</script>

# Tag

<DemoWrapper>
<Tag color="jade" class="px-[8px]">Tag</Tag>
<div class="flex flex-row flex-wrap items-start justify-center bg-gray-700 gap-6 mt-5">
<div v-for="size of Object.keys(CssSize)" class="flex flex-col items-center gap-3 justify-center my-4 p-4 bg-white rounded-lg">
<h3 class="text-right">{{size}}</h3>
<div v-for="color of Object.keys(CssColor)" class="flex gap-4 items-center justify-stretch">
<div class="flex items-center justify-center">
<Tag :size="size" :color="color">
{{color}}
</Tag>
</div>
<div class="flex items-center justify-center">
<Tag :size="size" :color="color" dark>
{{color}}
</Tag>
</div>
</div>
</div>
</div>
</DemoWrapper>

[figma::Tag](https://www.figma.com/file/1WJ3GVQyMV5e7xVxPg3yID/Design-System%2C-v1.x---%40latest?node-id=1950-2659&t=XOxzeAZJ0mBFwEHV-4)
8 changes: 8 additions & 0 deletions components/Tag/react/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,11 @@ yarn add @cypress-design/react-tag
```ts
import Tag from '@cypress-design/react-tag'
```

```tsx live
export default () => (
<Tag size="20" color="indigo">
Tag
</Tag>
)
```
6 changes: 6 additions & 0 deletions components/Tag/vue/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,9 @@ yarn add @cypress-design/vue-tag
```ts
import Tag from '@cypress-design/vue-tag'
```

```vue live
<Tag size="20" color="indigo">
Tag
</Tag>
```

0 comments on commit 76d10d0

Please sign in to comment.