From 877b22c29420a4f880c0bfd87b66314bc0ce7c41 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 12 Mar 2024 22:20:44 +0100 Subject: [PATCH] docs: consistent icons and avatars across examples --- .../content/examples/InputMenuExampleObjects.vue | 4 ++-- .../content/examples/SelectMenuExampleObjects.vue | 4 ++-- .../examples/VerticalNavigationExampleAvatarSlot.vue | 8 +------- docs/content/2.components/button.md | 8 ++++---- docs/content/2.components/input.md | 4 ++-- docs/content/2.components/select.md | 8 ++++---- 6 files changed, 15 insertions(+), 21 deletions(-) diff --git a/docs/components/content/examples/InputMenuExampleObjects.vue b/docs/components/content/examples/InputMenuExampleObjects.vue index ff78ac503f..2b14c132ec 100644 --- a/docs/components/content/examples/InputMenuExampleObjects.vue +++ b/docs/components/content/examples/InputMenuExampleObjects.vue @@ -31,8 +31,8 @@ const selected = ref(people[0]) diff --git a/docs/components/content/examples/SelectMenuExampleObjects.vue b/docs/components/content/examples/SelectMenuExampleObjects.vue index 94959fe45a..5eba2a5bf4 100644 --- a/docs/components/content/examples/SelectMenuExampleObjects.vue +++ b/docs/components/content/examples/SelectMenuExampleObjects.vue @@ -31,8 +31,8 @@ const selected = ref(people[0]) diff --git a/docs/components/content/examples/VerticalNavigationExampleAvatarSlot.vue b/docs/components/content/examples/VerticalNavigationExampleAvatarSlot.vue index 9532cee153..04632259f2 100644 --- a/docs/components/content/examples/VerticalNavigationExampleAvatarSlot.vue +++ b/docs/components/content/examples/VerticalNavigationExampleAvatarSlot.vue @@ -32,13 +32,7 @@ const links = [{ diff --git a/docs/content/2.components/button.md b/docs/content/2.components/button.md index fb8b8b1331..e3578ff44f 100644 --- a/docs/content/2.components/button.md +++ b/docs/content/2.components/button.md @@ -336,7 +336,7 @@ Use the `#leading` slot to set the content of the leading icon. ::component-card --- slots: - leading: + leading: baseProps: color: 'gray' props: @@ -347,7 +347,7 @@ excludedProps: --- #leading - :u-avatar{src="https://avatars.githubusercontent.com/u/739984?v=4" size="3xs"} + :u-avatar{src="https://avatars.githubusercontent.com/u/739984?v=4" size="2xs"} :: ### `trailing` @@ -357,7 +357,7 @@ Use the `#trailing` slot to set the content of the trailing icon. ::component-card --- slots: - trailing: + trailing: props: label: Button color: 'gray' @@ -366,7 +366,7 @@ excludedProps: --- #trailing - :u-icon{name="i-heroicons-arrow-right-20-solid"} + :u-icon{name="i-heroicons-arrow-right-20-solid" class="w-5 h-5"} :: ## Props diff --git a/docs/content/2.components/input.md b/docs/content/2.components/input.md index 276160c9dc..4400ab5312 100644 --- a/docs/content/2.components/input.md +++ b/docs/content/2.components/input.md @@ -180,13 +180,13 @@ Use the `#leading` slot to set the content of the leading icon. ::component-card --- slots: - leading: + leading: baseProps: placeholder: 'Search...' --- #leading - :u-avatar{src="https://avatars.githubusercontent.com/u/739984?v=4" size="3xs" class="mx-0.5"} + :u-avatar{src="https://avatars.githubusercontent.com/u/739984?v=4" size="2xs"} :: ### `trailing` diff --git a/docs/content/2.components/select.md b/docs/content/2.components/select.md index 50e1238eb1..e64bbf0e99 100644 --- a/docs/content/2.components/select.md +++ b/docs/content/2.components/select.md @@ -203,7 +203,7 @@ Use the `#leading` slot to set the content of the leading icon. ::component-card --- slots: - leading: + leading: baseProps: options: - 'United States' @@ -213,7 +213,7 @@ baseProps: --- #leading - :u-avatar{src="https://avatars.githubusercontent.com/u/739984?v=4" size="3xs" class="mx-0.5"} + :u-icon{name="i-heroicons-flag" class="w-5 h-5"} :: ### `trailing` @@ -223,13 +223,13 @@ Use the `#trailing` slot to set the content of the trailing icon. ::component-card --- slots: - trailing: + trailing: baseProps: placeholder: 'Search...' --- #trailing - :u-icon{name="i-heroicons-arrows-up-down-20-solid"} + :u-icon{name="i-heroicons-arrows-up-down-20-solid" class="w-5 h-5"} :: ## Props