mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
docs(separator): update
This commit is contained in:
@@ -7,14 +7,107 @@ links:
|
||||
- label: GitHub
|
||||
icon: i-simple-icons-github
|
||||
to: https://github.com/benjamincanac/ui3/tree/dev/src/runtime/components/Divider.vue
|
||||
navigation:
|
||||
badge:
|
||||
label: Todo
|
||||
---
|
||||
|
||||
## Usage
|
||||
|
||||
## Examples
|
||||
Use the Separator component as-is to separate content.
|
||||
|
||||
::component-code
|
||||
---
|
||||
class: 'p-8'
|
||||
---
|
||||
::
|
||||
|
||||
### Orientation
|
||||
|
||||
Use the `orientation` prop to change the orientation of the Separator. Defaults to `horizontal`.
|
||||
|
||||
::component-code
|
||||
---
|
||||
ignore:
|
||||
- class
|
||||
class: 'p-8 justify-center'
|
||||
props:
|
||||
orientation: vertical
|
||||
class: 'h-48'
|
||||
---
|
||||
::
|
||||
|
||||
### Label
|
||||
|
||||
Use the `label` prop to display a label in the middle of the Separator.
|
||||
|
||||
::component-code
|
||||
---
|
||||
class: 'p-8 justify-center'
|
||||
props:
|
||||
label: 'Hello World'
|
||||
---
|
||||
::
|
||||
|
||||
### Icon
|
||||
|
||||
Use the `icon` prop to display an icon in the middle of the Separator.
|
||||
|
||||
::component-code
|
||||
---
|
||||
class: 'p-8 justify-center'
|
||||
props:
|
||||
icon: 'i-simple-icons-nuxtdotjs'
|
||||
---
|
||||
::
|
||||
|
||||
### Avatar
|
||||
|
||||
Use the `avatar` prop to display an avatar in the middle of the Separator.
|
||||
|
||||
::component-code
|
||||
---
|
||||
prettier: true
|
||||
class: 'p-8 justify-center'
|
||||
props:
|
||||
avatar:
|
||||
src: 'https://github.com/benjamincanac.png'
|
||||
---
|
||||
::
|
||||
|
||||
### Color
|
||||
|
||||
Use the `color` prop to change the color of the Separator. Defaults to `gray`.
|
||||
|
||||
::component-code
|
||||
---
|
||||
class: 'p-8 justify-center'
|
||||
props:
|
||||
color: 'primary'
|
||||
type: solid
|
||||
---
|
||||
::
|
||||
|
||||
### Type
|
||||
|
||||
Use the `type` prop to change the type of the Separator. Defaults to `solid`.
|
||||
|
||||
::component-code
|
||||
---
|
||||
class: 'p-8'
|
||||
props:
|
||||
type: dashed
|
||||
---
|
||||
::
|
||||
|
||||
### Size
|
||||
|
||||
Use the `size` prop to change the size of the Separator. Defaults to `xs`.
|
||||
|
||||
::component-code
|
||||
---
|
||||
class: 'p-8'
|
||||
props:
|
||||
size: 'lg'
|
||||
---
|
||||
::
|
||||
|
||||
## API
|
||||
|
||||
|
||||
Reference in New Issue
Block a user