From 717a027bad1c9808f18fe2e8f113ca5c948fb9df Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 5 Nov 2024 21:18:09 +0100 Subject: [PATCH] docs: remove old badges --- docs/content/2.components/checkbox.md | 2 +- docs/content/2.components/radio-group.md | 2 +- docs/content/2.components/select-menu.md | 2 +- docs/content/2.components/table.md | 4 ++-- docs/content/2.components/tabs.md | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/content/2.components/checkbox.md b/docs/content/2.components/checkbox.md index 55ac1881..944333c3 100644 --- a/docs/content/2.components/checkbox.md +++ b/docs/content/2.components/checkbox.md @@ -87,7 +87,7 @@ slots: [Label]{.italic} :: -### `help` :u-badge{label="New" class="align-middle ml-2 !rounded-full" variant="subtle"} +### `help` Like the `#label` slot, use the `#help` slot to override the content of the help text. diff --git a/docs/content/2.components/radio-group.md b/docs/content/2.components/radio-group.md index 121fc261..2accb975 100644 --- a/docs/content/2.components/radio-group.md +++ b/docs/content/2.components/radio-group.md @@ -126,7 +126,7 @@ slots: [Label]{.italic} :: -### `help` :u-badge{label="New" class="align-middle ml-2 !rounded-full" variant="subtle"} +### `help` Like the `#label` slot, use the `#help` slot to override the content of the help text. diff --git a/docs/content/2.components/select-menu.md b/docs/content/2.components/select-menu.md index c8eaab24..bb28993a 100644 --- a/docs/content/2.components/select-menu.md +++ b/docs/content/2.components/select-menu.md @@ -188,7 +188,7 @@ componentProps: --- :: -Pass a function to the `show-create-option-when` prop to control wether or not to show the create option. This function takes two arguments: the query (as the first argument) and an array of current results (as the second argument). It should return true to display the create option. :u-badge{label="New" class="!rounded-full" variant="subtle"} +Pass a function to the `show-create-option-when` prop to control wether or not to show the create option. This function takes two arguments: the query (as the first argument) and an array of current results (as the second argument). It should return true to display the create option. The example below shows how to make the create option visible when the query is at least three characters long and does not exactly match any of the current results (case insensitive). diff --git a/docs/content/2.components/table.md b/docs/content/2.components/table.md index b9413358..a3b421fe 100644 --- a/docs/content/2.components/table.md +++ b/docs/content/2.components/table.md @@ -29,7 +29,7 @@ Use the `columns` prop to configure which columns to display. It's an array of o - `sortable` - Whether the column is sortable. Defaults to `false`. - `direction` - The sort direction to use on first click. Defaults to `asc`. - `class` - The class to apply to the column cells. -- `rowClass` - The class to apply to the data column cells. :u-badge{label="New" class="!rounded-full" variant="subtle"} +- `rowClass` - The class to apply to the data column cells. - `sort` - Pass your own `sort` function. Defaults to a simple _greater than_ / _less than_ comparison. Arguments for the `sort` function are: Value A, Value B, Direction - 'asc' or 'desc' @@ -313,7 +313,7 @@ componentProps: --- :: -### Expandable :u-badge{label="New" class="align-middle ml-2 !rounded-full" variant="subtle"} +### Expandable You can use the `v-model:expand` to enables row expansion functionality in the table component. It maintains an object containing an `openedRows` an array and `row` an object, which tracks the indices of currently expanded rows. diff --git a/docs/content/2.components/tabs.md b/docs/content/2.components/tabs.md index cdbc1789..400edd05 100644 --- a/docs/content/2.components/tabs.md +++ b/docs/content/2.components/tabs.md @@ -92,7 +92,7 @@ Use the `#default` slot to customize the content of the trigger buttons. You wil :component-example{component="tabs-example-default-slot"} -### `icon` :u-badge{label="New" class="align-middle ml-2 !rounded-full" variant="subtle"} +### `icon` Use the `#icon` slot to customize the icon of the trigger buttons. You will have access to the `item`, `index`, `selected` and `disabled` in the slot scope.