Skip to content

Commit 583f9f6

Browse files
committed
docs(color-field): update docs for ColorField
1 parent abaede8 commit 583f9f6

File tree

7 files changed

+62
-3
lines changed

7 files changed

+62
-3
lines changed
Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,27 @@
11
---
22
title: Color Field
3-
description:
3+
description: Captures a color using native functionality.
44
status: alpha
5+
source: https://github.com/typlog/ui/tree/main/src/components/inputs/ColorField.vue
56
---
67

78
<Example name="color-field/Overview.vue" variant="full" />
9+
10+
11+
## API Reference
12+
13+
<PropsTable name="ColorField" />
14+
15+
## Examples
16+
17+
### Size
18+
19+
<Example name="color-field/Size.vue" />
20+
21+
### Radius
22+
23+
<Example name="color-field/Radius.vue" />
24+
25+
### Variant
26+
27+
<Example name="color-field/Variant.vue" />
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: Pagination
3+
status: alpha
4+
source: https://github.com/typlog/ui/tree/main/src/components/pagination
5+
---

docs/content/components/text-area.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: TextArea
3-
description: Captures user input with an optional slot for buttons and icons.
3+
description: Captures multi-line user input.
44
status: stable
55
source: https://github.com/typlog/ui/tree/main/src/components/inputs/TextArea.vue
66
radix: https://www.radix-ui.com/themes/docs/components/text-area

docs/examples/color-field/Overview.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ import { ColorField } from '#components'
44

55
<template>
66
<div class="flex">
7-
<ColorField default-value="#3e63dd" />
7+
<ColorField default-value="#3e63dd" radius="full" />
88
</div>
99
</template>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<script setup lang="ts">
2+
import { ColorField } from '#components'
3+
</script>
4+
5+
<template>
6+
<div class="flex items-center gap-2">
7+
<ColorField default-value="#3e63dd" radius="none" />
8+
<ColorField default-value="#3e63dd" radius="small" />
9+
<ColorField default-value="#3e63dd" radius="medium" />
10+
<ColorField default-value="#3e63dd" radius="large" />
11+
<ColorField default-value="#3e63dd" radius="full" />
12+
</div>
13+
</template>

docs/examples/color-field/Size.vue

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<script setup lang="ts">
2+
import { ColorField } from '#components'
3+
</script>
4+
5+
<template>
6+
<div class="flex items-center gap-2">
7+
<ColorField default-value="#3e63dd" size="1" />
8+
<ColorField default-value="#3e63dd" size="2" />
9+
<ColorField default-value="#3e63dd" size="3" />
10+
</div>
11+
</template>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<script setup lang="ts">
2+
import { ColorField } from '#components'
3+
</script>
4+
5+
<template>
6+
<div class="flex items-center gap-2">
7+
<ColorField default-value="#3e63dd" variant="solid" radius="full" />
8+
<ColorField default-value="#3e63dd" variant="ring" radius="full" />
9+
</div>
10+
</template>

0 commit comments

Comments
 (0)