mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-25 01:10:40 +01:00
fix(components)!: rename select to onSelect on items
This commit is contained in:
@@ -25,7 +25,7 @@ Use the `items` prop as an array of objects with the following properties:
|
||||
- `disabled?: boolean`{lang="ts-type"}
|
||||
- `class?: any`{lang="ts-type"}
|
||||
- [`slot?: string`{lang="ts-type"}](#with-custom-slot)
|
||||
- `select?(e: Event): void`{lang="ts-type"}
|
||||
- `onSelect?(e: Event): void`{lang="ts-type"}
|
||||
|
||||
You can also pass any property from the [Link](/components/link#props) component such as `to`, `target`, etc.
|
||||
|
||||
@@ -130,7 +130,7 @@ Each item can take a `children` array of objects with the following properties t
|
||||
- `description?: string`
|
||||
- `icon?: string`
|
||||
- `class?: any`
|
||||
- `select?(e: Event): void`
|
||||
- `onSelect?(e: Event): void`
|
||||
::
|
||||
|
||||
### Orientation
|
||||
|
||||
Reference in New Issue
Block a user