mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-27 02:10:40 +01:00
docs: use camelCase in props
This commit is contained in:
@@ -69,7 +69,7 @@ const options = computed(() => {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
name: key,
|
name: key,
|
||||||
label: kebabCase(key),
|
label: key,
|
||||||
type: prop?.type,
|
type: prop?.type,
|
||||||
items
|
items
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ props:
|
|||||||
title: 'Heads up!'
|
title: 'Heads up!'
|
||||||
description: 'You can change the primary color in your app config.'
|
description: 'You can change the primary color in your app config.'
|
||||||
close: true
|
close: true
|
||||||
close-icon: ''
|
closeIcon: ''
|
||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
|
|||||||
@@ -91,8 +91,8 @@ Use the `leading` and `trailing` props to set the icon position or the `leading-
|
|||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
props:
|
props:
|
||||||
leading-icon: ''
|
leadingIcon: ''
|
||||||
trailing-icon: i-heroicons-arrow-right
|
trailingIcon: i-heroicons-arrow-right
|
||||||
size: md
|
size: md
|
||||||
slots:
|
slots:
|
||||||
default: Button
|
default: Button
|
||||||
@@ -121,7 +121,7 @@ Use the `loading-icon` prop to customize this icon. Defaults to `i-heroicons-arr
|
|||||||
---
|
---
|
||||||
props:
|
props:
|
||||||
loading: true
|
loading: true
|
||||||
loading-icon: ''
|
loadingIcon: ''
|
||||||
trailing: false
|
trailing: false
|
||||||
slots:
|
slots:
|
||||||
default: Button
|
default: Button
|
||||||
@@ -172,6 +172,9 @@ Use the `ui` prop to override the slots styles of the Button.
|
|||||||
---
|
---
|
||||||
ignore:
|
ignore:
|
||||||
- ui
|
- ui
|
||||||
|
- color
|
||||||
|
- variant
|
||||||
|
- icon
|
||||||
props:
|
props:
|
||||||
icon: i-heroicons-rocket-launch
|
icon: i-heroicons-rocket-launch
|
||||||
color: gray
|
color: gray
|
||||||
|
|||||||
@@ -64,8 +64,8 @@ ignore:
|
|||||||
props:
|
props:
|
||||||
raw: true
|
raw: true
|
||||||
to: /components/link
|
to: /components/link
|
||||||
active-class: 'font-bold'
|
activeClass: 'font-bold'
|
||||||
inactive-class: 'text-gray-500 dark:text-gray-500'
|
inactiveClass: 'text-gray-500 dark:text-gray-500'
|
||||||
slots:
|
slots:
|
||||||
default: Link
|
default: Link
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user