mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-23 00:15:05 +01:00
docs: update badges
This commit is contained in:
@@ -108,7 +108,7 @@ const selected = ref(people[0])
|
||||
```
|
||||
::
|
||||
|
||||
If you only want to select a single object property rather than the whole object as value, you can set the `value-attribute` property. This prop defaults to `null`.
|
||||
If you only want to select a single object property rather than the whole object as value, you can set the `value-attribute` property. This prop defaults to `null`. :u-badge{label="Edge" class="!rounded-full" variant="subtle"}
|
||||
|
||||
::component-example
|
||||
#default
|
||||
@@ -193,7 +193,7 @@ props:
|
||||
---
|
||||
::
|
||||
|
||||
### Async search :u-badge{label="New" class="ml-2 align-text-bottom !rounded-full"}
|
||||
### Async search :u-badge{label="New" class="ml-2 align-text-bottom !rounded-full" variant="subtle"}
|
||||
|
||||
Pass a function to the `searchable` prop to customize the search behavior and filter options according to your needs. The function will receive the query as its first argument and should return an array.
|
||||
|
||||
|
||||
@@ -134,7 +134,7 @@ You can also use the `error` prop as a boolean to mark the form element as inval
|
||||
The `error` prop will automatically set the `color` prop of the form element to `red`.
|
||||
::
|
||||
|
||||
### Size
|
||||
### Size :u-badge{label="Edge" class="ml-2 align-text-bottom !rounded-full" variant="subtle"}
|
||||
|
||||
Use the `size` prop to change the size of the label and the form element.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user