From 032f985f2e2eb0713680a65dd380c9fc2bed3c88 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 31 Oct 2023 10:23:09 +0100 Subject: [PATCH] docs: remove `New` badges for edge --- docs/content/2.elements/10.progress.md | 2 -- docs/content/2.elements/11.meter.md | 2 -- docs/content/3.forms/10.form.md | 2 +- docs/content/3.forms/6.radio-group.md | 2 -- docs/content/4.data/1.table.md | 2 +- docs/content/5.navigation/3.pagination.md | 4 ++-- docs/content/6.overlays/3.popover.md | 2 +- docs/content/7.layout/4.divider.md | 2 -- 8 files changed, 5 insertions(+), 13 deletions(-) diff --git a/docs/content/2.elements/10.progress.md b/docs/content/2.elements/10.progress.md index 4c50fe485d..a701d71cd7 100644 --- a/docs/content/2.elements/10.progress.md +++ b/docs/content/2.elements/10.progress.md @@ -1,8 +1,6 @@ --- title: 'Progress' description: Show a horizontal bar to indicate task progression. -navigation: - badge: New links: - label: GitHub icon: i-simple-icons-github diff --git a/docs/content/2.elements/11.meter.md b/docs/content/2.elements/11.meter.md index ee04b94dea..2647453f98 100644 --- a/docs/content/2.elements/11.meter.md +++ b/docs/content/2.elements/11.meter.md @@ -1,8 +1,6 @@ --- title: 'Meter' description: Display a gauge meter that fills or depletes. -navigation: - badge: New links: - label: GitHub icon: i-simple-icons-github diff --git a/docs/content/3.forms/10.form.md b/docs/content/3.forms/10.form.md index 6b0d24c0b3..d6352cc4b1 100644 --- a/docs/content/3.forms/10.form.md +++ b/docs/content/3.forms/10.form.md @@ -137,7 +137,7 @@ The Form component automatically triggers validation upon `submit`, `input`, `bl Take a look at the component! :: -## Error event :u-badge{label="New" class="align-middle ml-2 !rounded-full" variant="subtle"} +## Error event You can listen to the `@error` event to handle errors. This event is triggered when the form is validated and contains an array of `FormError` objects with the following fields: diff --git a/docs/content/3.forms/6.radio-group.md b/docs/content/3.forms/6.radio-group.md index c7cb997996..28cf88fff8 100644 --- a/docs/content/3.forms/6.radio-group.md +++ b/docs/content/3.forms/6.radio-group.md @@ -1,8 +1,6 @@ --- title: RadioGroup description: Display a set of radio buttons. -navigation: - badge: New links: - label: GitHub icon: i-simple-icons-github diff --git a/docs/content/4.data/1.table.md b/docs/content/4.data/1.table.md index 777cee1924..66c4ba82ac 100644 --- a/docs/content/4.data/1.table.md +++ b/docs/content/4.data/1.table.md @@ -156,7 +156,7 @@ Use the `sort-desc-icon` prop to set a different icon or change it globally in ` You can also customize the entire header cell, read more in the [Slots](#slots) section. :: -#### Reactive sorting :u-badge{label="New" class="align-middle ml-2 !rounded-full" variant="subtle"} +#### Reactive sorting Sometimes you will want to fetch new data depending on the sorted column and direction. You can use the `v-model:sort` to automatically update the `ref` reactive element every time the sorting changes on the Table. You may also use `@update:sort` to call your own function with the sorting data. diff --git a/docs/content/5.navigation/3.pagination.md b/docs/content/5.navigation/3.pagination.md index 53368b04f9..be2ecca5f0 100644 --- a/docs/content/5.navigation/3.pagination.md +++ b/docs/content/5.navigation/3.pagination.md @@ -91,7 +91,7 @@ excludedProps: --- :: -### First / Last :u-badge{label="New" class="align-middle ml-2 !rounded-full" variant="subtle"} +### First / Last Use the `first-button` and `last-button` props to customize the first and last buttons of the Pagination. @@ -126,7 +126,7 @@ Use the `#prev` and `#next` slots to set the content of the previous and next bu :component-example{component="pagination-example-prev-next-slots"} -### `first` / `last` :u-badge{label="New" class="align-middle ml-2 !rounded-full" variant="subtle"} +### `first` / `last` Use the `#first` and `#last` slots to set the content of the first and last buttons. diff --git a/docs/content/6.overlays/3.popover.md b/docs/content/6.overlays/3.popover.md index 9a5d659e38..11ad891e5c 100644 --- a/docs/content/6.overlays/3.popover.md +++ b/docs/content/6.overlays/3.popover.md @@ -19,7 +19,7 @@ Use the `mode` prop to switch between `click` and `hover` modes. :component-example{component="popover-example-mode"} -### Manual :u-badge{label="New" class="align-middle ml-2 !rounded-full" variant="subtle"} +### Manual Use the `open` prop to manually control showing the panel. diff --git a/docs/content/7.layout/4.divider.md b/docs/content/7.layout/4.divider.md index 9dfef51c5a..82661a9b9d 100644 --- a/docs/content/7.layout/4.divider.md +++ b/docs/content/7.layout/4.divider.md @@ -4,8 +4,6 @@ links: - label: GitHub icon: i-simple-icons-github to: https://github.com/nuxt/ui/blob/dev/src/runtime/components/layout/Divider.vue -navigation: - badge: New --- ## Usage