mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-27 02:10:40 +01:00
docs(ComponentCode/ComponentExample): use justify-center everywhere
This commit is contained in:
@@ -251,7 +251,7 @@ const { data: ast } = await useAsyncData(`component-code-${name}-${JSON.stringif
|
|||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex border border-b-0 border-gray-300 dark:border-gray-700 relative p-4 z-[1]" :class="[!options.length && 'rounded-t-md', props.class]">
|
<div class="flex justify-center border border-b-0 border-gray-300 dark:border-gray-700 relative p-4 z-[1]" :class="[!options.length && 'rounded-t-md', props.class]">
|
||||||
<component :is="name" v-bind="componentProps" @update:model-value="!!componentProps.modelValue && setComponentProp('modelValue', $event)">
|
<component :is="name" v-bind="componentProps" @update:model-value="!!componentProps.modelValue && setComponentProp('modelValue', $event)">
|
||||||
<template v-for="slot in Object.keys(slots || {})" :key="slot" #[slot]>
|
<template v-for="slot in Object.keys(slots || {})" :key="slot" #[slot]>
|
||||||
<ContentSlot :name="slot" unwrap="p">
|
<ContentSlot :name="slot" unwrap="p">
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ const optionsValues = ref(props.options?.reduce((acc, option) => {
|
|||||||
</UFormField>
|
</UFormField>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex p-4" :class="props.class">
|
<div class="flex justify-center p-4" :class="props.class">
|
||||||
<component :is="camelName" v-bind="{ ...componentProps, ...optionsValues }" />
|
<component :is="camelName" v-bind="{ ...componentProps, ...optionsValues }" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ Then, use the `#content` slot to add the content displayed when the Collapsible
|
|||||||
prettier: true
|
prettier: true
|
||||||
ignore:
|
ignore:
|
||||||
- class
|
- class
|
||||||
class: 'justify-center'
|
|
||||||
props:
|
props:
|
||||||
class: 'w-48'
|
class: 'w-48'
|
||||||
slots:
|
slots:
|
||||||
@@ -48,7 +47,6 @@ Use the `disabled` prop to disable the Collapsible.
|
|||||||
prettier: true
|
prettier: true
|
||||||
ignore:
|
ignore:
|
||||||
- class
|
- class
|
||||||
class: 'justify-center'
|
|
||||||
props:
|
props:
|
||||||
class: 'w-48'
|
class: 'w-48'
|
||||||
disabled: true
|
disabled: true
|
||||||
@@ -77,7 +75,6 @@ You can control the open state by using the `default-open` prop or the `v-model:
|
|||||||
::component-example
|
::component-example
|
||||||
---
|
---
|
||||||
name: 'collapsible-open-example'
|
name: 'collapsible-open-example'
|
||||||
class: 'justify-center'
|
|
||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
@@ -96,7 +93,6 @@ Here is an example with a rotating icon in the Button that indicates the open st
|
|||||||
::component-example
|
::component-example
|
||||||
---
|
---
|
||||||
name: 'collapsible-icon-example'
|
name: 'collapsible-icon-example'
|
||||||
class: 'justify-center'
|
|
||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
|
|||||||
@@ -467,7 +467,6 @@ You can use the CommandPalette component inside a [Popover](/components/popover)
|
|||||||
---
|
---
|
||||||
collapse: true
|
collapse: true
|
||||||
name: 'popover-command-palette-example'
|
name: 'popover-command-palette-example'
|
||||||
class: 'justify-center'
|
|
||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
@@ -479,7 +478,6 @@ You can use the CommandPalette component inside a [Modal](/components/modal)'s c
|
|||||||
---
|
---
|
||||||
collapse: true
|
collapse: true
|
||||||
name: 'modal-command-palette-example'
|
name: 'modal-command-palette-example'
|
||||||
class: 'justify-center'
|
|
||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
@@ -491,7 +489,6 @@ You can use the CommandPalette component inside a [Drawer](/components/drawer)'s
|
|||||||
---
|
---
|
||||||
collapse: true
|
collapse: true
|
||||||
name: 'drawer-command-palette-example'
|
name: 'drawer-command-palette-example'
|
||||||
class: 'justify-center'
|
|
||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
@@ -503,7 +500,6 @@ When using the `close` prop, you can listen to the `update:open` event when the
|
|||||||
---
|
---
|
||||||
collapse: true
|
collapse: true
|
||||||
name: 'command-palette-open-example'
|
name: 'command-palette-open-example'
|
||||||
class: 'justify-center'
|
|
||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ ignore:
|
|||||||
- class
|
- class
|
||||||
external:
|
external:
|
||||||
- items
|
- items
|
||||||
class: 'justify-center'
|
|
||||||
props:
|
props:
|
||||||
items:
|
items:
|
||||||
- - label: Appearance
|
- - label: Appearance
|
||||||
@@ -119,7 +118,6 @@ ignore:
|
|||||||
- class
|
- class
|
||||||
external:
|
external:
|
||||||
- items
|
- items
|
||||||
class: 'justify-center'
|
|
||||||
props:
|
props:
|
||||||
size: xl
|
size: xl
|
||||||
items:
|
items:
|
||||||
@@ -153,7 +151,6 @@ ignore:
|
|||||||
- class
|
- class
|
||||||
external:
|
external:
|
||||||
- items
|
- items
|
||||||
class: 'justify-center'
|
|
||||||
props:
|
props:
|
||||||
disabled: true
|
disabled: true
|
||||||
items:
|
items:
|
||||||
@@ -191,7 +188,6 @@ You will have access to the following slots:
|
|||||||
::component-example
|
::component-example
|
||||||
---
|
---
|
||||||
name: 'context-menu-custom-slot-example'
|
name: 'context-menu-custom-slot-example'
|
||||||
class: 'justify-center'
|
|
||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ Then, use the `#content` slot to add the content displayed when the Drawer is op
|
|||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
prettier: true
|
prettier: true
|
||||||
class: 'justify-center'
|
|
||||||
slots:
|
slots:
|
||||||
default: |
|
default: |
|
||||||
|
|
||||||
@@ -44,7 +43,6 @@ Use the `title` prop to set the title of the Drawer's header.
|
|||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
prettier: true
|
prettier: true
|
||||||
class: 'justify-center'
|
|
||||||
props:
|
props:
|
||||||
title: 'Drawer with title'
|
title: 'Drawer with title'
|
||||||
slots:
|
slots:
|
||||||
@@ -70,7 +68,6 @@ Use the `description` prop to set the description of the Drawer's header.
|
|||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
prettier: true
|
prettier: true
|
||||||
class: 'justify-center'
|
|
||||||
ignore:
|
ignore:
|
||||||
- title
|
- title
|
||||||
props:
|
props:
|
||||||
@@ -99,7 +96,6 @@ Use the `overlay` prop to control whether the Drawer has an overlay or not. Defa
|
|||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
prettier: true
|
prettier: true
|
||||||
class: 'justify-center'
|
|
||||||
props:
|
props:
|
||||||
overlay: false
|
overlay: false
|
||||||
slots:
|
slots:
|
||||||
@@ -125,7 +121,6 @@ Use the `should-scale-background` prop to scale the background when the Drawer i
|
|||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
prettier: true
|
prettier: true
|
||||||
class: 'justify-center'
|
|
||||||
props:
|
props:
|
||||||
shouldScaleBackground: true
|
shouldScaleBackground: true
|
||||||
slots:
|
slots:
|
||||||
@@ -180,7 +175,6 @@ You can control the open state by using the `default-open` prop or the `v-model:
|
|||||||
::component-example
|
::component-example
|
||||||
---
|
---
|
||||||
name: 'drawer-open-example'
|
name: 'drawer-open-example'
|
||||||
class: 'justify-center'
|
|
||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
@@ -199,7 +193,6 @@ Use the `#footer` slot to add content after the Drawer's body.
|
|||||||
::component-example
|
::component-example
|
||||||
---
|
---
|
||||||
name: 'drawer-footer-slot-example'
|
name: 'drawer-footer-slot-example'
|
||||||
class: 'justify-center'
|
|
||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
@@ -211,7 +204,6 @@ You can use a [CommandPalette](/components/command-palette) component inside the
|
|||||||
---
|
---
|
||||||
collapse: true
|
collapse: true
|
||||||
name: 'drawer-command-palette-example'
|
name: 'drawer-command-palette-example'
|
||||||
class: 'justify-center'
|
|
||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ ignore:
|
|||||||
- class
|
- class
|
||||||
external:
|
external:
|
||||||
- items
|
- items
|
||||||
class: 'justify-center'
|
|
||||||
props:
|
props:
|
||||||
items:
|
items:
|
||||||
- - label: Benjamin
|
- - label: Benjamin
|
||||||
@@ -128,7 +127,6 @@ items:
|
|||||||
- left
|
- left
|
||||||
- top
|
- top
|
||||||
- bottom
|
- bottom
|
||||||
class: 'justify-center'
|
|
||||||
props:
|
props:
|
||||||
items:
|
items:
|
||||||
- label: Profile
|
- label: Profile
|
||||||
@@ -164,7 +162,6 @@ ignore:
|
|||||||
- class
|
- class
|
||||||
external:
|
external:
|
||||||
- items
|
- items
|
||||||
class: 'justify-center'
|
|
||||||
props:
|
props:
|
||||||
arrow: true
|
arrow: true
|
||||||
items:
|
items:
|
||||||
@@ -197,7 +194,6 @@ ignore:
|
|||||||
- content.align
|
- content.align
|
||||||
external:
|
external:
|
||||||
- items
|
- items
|
||||||
class: 'justify-center'
|
|
||||||
props:
|
props:
|
||||||
size: xl
|
size: xl
|
||||||
items:
|
items:
|
||||||
@@ -239,7 +235,6 @@ ignore:
|
|||||||
- class
|
- class
|
||||||
external:
|
external:
|
||||||
- items
|
- items
|
||||||
class: 'justify-center'
|
|
||||||
props:
|
props:
|
||||||
disabled: true
|
disabled: true
|
||||||
items:
|
items:
|
||||||
@@ -268,7 +263,6 @@ You can control the open state by using the `default-open` prop or the `v-model:
|
|||||||
::component-example
|
::component-example
|
||||||
---
|
---
|
||||||
name: 'dropdown-menu-open-example'
|
name: 'dropdown-menu-open-example'
|
||||||
class: 'justify-center'
|
|
||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
@@ -290,7 +284,6 @@ You will have access to the following slots:
|
|||||||
::component-example
|
::component-example
|
||||||
---
|
---
|
||||||
name: 'dropdown-menu-custom-slot-example'
|
name: 'dropdown-menu-custom-slot-example'
|
||||||
class: 'justify-center'
|
|
||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ Then, use the `#content` slot to add the content displayed when the Modal is ope
|
|||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
prettier: true
|
prettier: true
|
||||||
class: 'justify-center'
|
|
||||||
slots:
|
slots:
|
||||||
default: |
|
default: |
|
||||||
|
|
||||||
@@ -44,7 +43,6 @@ Use the `title` prop to set the title of the Modal's header.
|
|||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
prettier: true
|
prettier: true
|
||||||
class: 'justify-center'
|
|
||||||
props:
|
props:
|
||||||
title: 'Modal with title'
|
title: 'Modal with title'
|
||||||
slots:
|
slots:
|
||||||
@@ -70,7 +68,6 @@ Use the `description` prop to set the description of the Modal's header.
|
|||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
prettier: true
|
prettier: true
|
||||||
class: 'justify-center'
|
|
||||||
ignore:
|
ignore:
|
||||||
- title
|
- title
|
||||||
props:
|
props:
|
||||||
@@ -101,7 +98,6 @@ You can pass all the props of the [Button](/components/button) component to cust
|
|||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
prettier: true
|
prettier: true
|
||||||
class: 'justify-center'
|
|
||||||
ignore:
|
ignore:
|
||||||
- title
|
- title
|
||||||
- close.color
|
- close.color
|
||||||
@@ -139,7 +135,6 @@ Use the `close-icon` prop to customize the close button [Icon](/components/icon)
|
|||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
prettier: true
|
prettier: true
|
||||||
class: 'justify-center'
|
|
||||||
ignore:
|
ignore:
|
||||||
- title
|
- title
|
||||||
props:
|
props:
|
||||||
@@ -174,7 +169,6 @@ Use the `overlay` prop to control whether the Modal has an overlay or not. Defau
|
|||||||
prettier: true
|
prettier: true
|
||||||
ignore:
|
ignore:
|
||||||
- title
|
- title
|
||||||
class: 'justify-center'
|
|
||||||
props:
|
props:
|
||||||
overlay: false
|
overlay: false
|
||||||
title: 'Modal without overlay'
|
title: 'Modal without overlay'
|
||||||
@@ -203,7 +197,6 @@ Use the `transition` prop to control whether the Modal is animated or not. Defau
|
|||||||
prettier: true
|
prettier: true
|
||||||
ignore:
|
ignore:
|
||||||
- title
|
- title
|
||||||
class: 'justify-center'
|
|
||||||
props:
|
props:
|
||||||
transition: false
|
transition: false
|
||||||
title: 'Modal without transition'
|
title: 'Modal without transition'
|
||||||
@@ -233,7 +226,6 @@ prettier: true
|
|||||||
ignore:
|
ignore:
|
||||||
- title
|
- title
|
||||||
- fullscreen
|
- fullscreen
|
||||||
class: 'justify-center'
|
|
||||||
props:
|
props:
|
||||||
fullscreen: true
|
fullscreen: true
|
||||||
title: 'Modal fullscreen'
|
title: 'Modal fullscreen'
|
||||||
@@ -263,7 +255,6 @@ prettier: true
|
|||||||
ignore:
|
ignore:
|
||||||
- title
|
- title
|
||||||
- preventClose
|
- preventClose
|
||||||
class: 'justify-center'
|
|
||||||
props:
|
props:
|
||||||
preventClose: true
|
preventClose: true
|
||||||
title: 'Modal prevent close'
|
title: 'Modal prevent close'
|
||||||
@@ -292,7 +283,6 @@ You can control the open state by using the `default-open` prop or the `v-model:
|
|||||||
::component-example
|
::component-example
|
||||||
---
|
---
|
||||||
name: 'modal-open-example'
|
name: 'modal-open-example'
|
||||||
class: 'justify-center'
|
|
||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
@@ -326,7 +316,6 @@ Then, use it in your app:
|
|||||||
::component-example
|
::component-example
|
||||||
---
|
---
|
||||||
name: 'modal-programmatic-example'
|
name: 'modal-programmatic-example'
|
||||||
class: 'justify-center'
|
|
||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
@@ -341,7 +330,6 @@ You can nest modals within each other.
|
|||||||
::component-example
|
::component-example
|
||||||
---
|
---
|
||||||
name: 'modal-nested-example'
|
name: 'modal-nested-example'
|
||||||
class: 'justify-center'
|
|
||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
@@ -352,7 +340,6 @@ Use the `#footer` slot to add content after the Modal's body.
|
|||||||
::component-example
|
::component-example
|
||||||
---
|
---
|
||||||
name: 'modal-footer-slot-example'
|
name: 'modal-footer-slot-example'
|
||||||
class: 'justify-center'
|
|
||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
@@ -364,7 +351,6 @@ You can use a [CommandPalette](/components/command-palette) component inside the
|
|||||||
---
|
---
|
||||||
collapse: true
|
collapse: true
|
||||||
name: 'modal-command-palette-example'
|
name: 'modal-command-palette-example'
|
||||||
class: 'justify-center'
|
|
||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
|
|||||||
@@ -497,7 +497,6 @@ You will have access to the following slots:
|
|||||||
::component-example
|
::component-example
|
||||||
---
|
---
|
||||||
name: 'navigation-menu-custom-slot-example'
|
name: 'navigation-menu-custom-slot-example'
|
||||||
class: 'justify-center'
|
|
||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ Then, use the `#content` slot to add the content displayed when the Popover is o
|
|||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
prettier: true
|
prettier: true
|
||||||
class: 'justify-center'
|
|
||||||
slots:
|
slots:
|
||||||
default: |
|
default: |
|
||||||
|
|
||||||
@@ -42,7 +41,6 @@ Use the `mode` prop to change the mode of the Popover. Defaults to `click`.
|
|||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
prettier: true
|
prettier: true
|
||||||
class: 'justify-center'
|
|
||||||
items:
|
items:
|
||||||
mode:
|
mode:
|
||||||
- click
|
- click
|
||||||
@@ -76,7 +74,6 @@ When using the `hover` mode, you can use the `open-delay` and `close-delay` prop
|
|||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
prettier: true
|
prettier: true
|
||||||
class: 'justify-center'
|
|
||||||
ignore:
|
ignore:
|
||||||
- mode
|
- mode
|
||||||
props:
|
props:
|
||||||
@@ -106,7 +103,6 @@ Use the `content` prop to control how the Popover content is rendered, like its
|
|||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
prettier: true
|
prettier: true
|
||||||
class: 'justify-center'
|
|
||||||
items:
|
items:
|
||||||
content.align:
|
content.align:
|
||||||
- start
|
- start
|
||||||
@@ -145,7 +141,6 @@ Use the `arrow` prop to display an arrow on the Popover.
|
|||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
prettier: true
|
prettier: true
|
||||||
class: 'justify-center'
|
|
||||||
ignore:
|
ignore:
|
||||||
- arrow
|
- arrow
|
||||||
props:
|
props:
|
||||||
@@ -175,7 +170,6 @@ You can control the open state by using the `default-open` prop or the `v-model:
|
|||||||
::component-example
|
::component-example
|
||||||
---
|
---
|
||||||
name: 'popover-open-example'
|
name: 'popover-open-example'
|
||||||
class: 'justify-center'
|
|
||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
@@ -191,7 +185,6 @@ You can use a [CommandPalette](/components/command-palette) component inside the
|
|||||||
---
|
---
|
||||||
collapse: true
|
collapse: true
|
||||||
name: 'popover-command-palette-example'
|
name: 'popover-command-palette-example'
|
||||||
class: 'justify-center'
|
|
||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
|
|||||||
@@ -102,7 +102,6 @@ Use the `orientation` prop to change the orientation of the Progress. Defaults t
|
|||||||
---
|
---
|
||||||
ignore:
|
ignore:
|
||||||
- class
|
- class
|
||||||
class: 'justify-center'
|
|
||||||
props:
|
props:
|
||||||
orientation: vertical
|
orientation: vertical
|
||||||
class: 'h-48'
|
class: 'h-48'
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ Use the `orientation` prop to change the orientation of the Separator. Defaults
|
|||||||
---
|
---
|
||||||
ignore:
|
ignore:
|
||||||
- class
|
- class
|
||||||
class: 'p-8 justify-center'
|
class: 'p-8'
|
||||||
props:
|
props:
|
||||||
orientation: vertical
|
orientation: vertical
|
||||||
class: 'h-48'
|
class: 'h-48'
|
||||||
@@ -40,7 +40,7 @@ Use the `label` prop to display a label in the middle of the Separator.
|
|||||||
|
|
||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
class: 'p-8 justify-center'
|
class: 'p-8'
|
||||||
props:
|
props:
|
||||||
label: 'Hello World'
|
label: 'Hello World'
|
||||||
---
|
---
|
||||||
@@ -52,7 +52,7 @@ Use the `icon` prop to display an icon in the middle of the Separator.
|
|||||||
|
|
||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
class: 'p-8 justify-center'
|
class: 'p-8'
|
||||||
props:
|
props:
|
||||||
icon: 'i-simple-icons-nuxtdotjs'
|
icon: 'i-simple-icons-nuxtdotjs'
|
||||||
---
|
---
|
||||||
@@ -65,7 +65,7 @@ Use the `avatar` prop to display an avatar in the middle of the Separator.
|
|||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
prettier: true
|
prettier: true
|
||||||
class: 'p-8 justify-center'
|
class: 'p-8'
|
||||||
props:
|
props:
|
||||||
avatar:
|
avatar:
|
||||||
src: 'https://github.com/benjamincanac.png'
|
src: 'https://github.com/benjamincanac.png'
|
||||||
@@ -78,7 +78,7 @@ Use the `color` prop to change the color of the Separator. Defaults to `gray`.
|
|||||||
|
|
||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
class: 'p-8 justify-center'
|
class: 'p-8'
|
||||||
props:
|
props:
|
||||||
color: 'primary'
|
color: 'primary'
|
||||||
type: solid
|
type: solid
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ Then, use the `#content` slot to add the content displayed when the Slideover is
|
|||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
prettier: true
|
prettier: true
|
||||||
class: 'justify-center'
|
|
||||||
slots:
|
slots:
|
||||||
default: |
|
default: |
|
||||||
|
|
||||||
@@ -44,7 +43,6 @@ Use the `title` prop to set the title of the Slideover's header.
|
|||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
prettier: true
|
prettier: true
|
||||||
class: 'justify-center'
|
|
||||||
props:
|
props:
|
||||||
title: 'Slideover with title'
|
title: 'Slideover with title'
|
||||||
slots:
|
slots:
|
||||||
@@ -70,7 +68,6 @@ Use the `description` prop to set the description of the Slideover's header.
|
|||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
prettier: true
|
prettier: true
|
||||||
class: 'justify-center'
|
|
||||||
ignore:
|
ignore:
|
||||||
- title
|
- title
|
||||||
props:
|
props:
|
||||||
@@ -101,7 +98,6 @@ You can pass all the props of the [Button](/components/button) component to cust
|
|||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
prettier: true
|
prettier: true
|
||||||
class: 'justify-center'
|
|
||||||
ignore:
|
ignore:
|
||||||
- title
|
- title
|
||||||
- close.color
|
- close.color
|
||||||
@@ -139,7 +135,6 @@ Use the `close-icon` prop to customize the close button [Icon](/components/icon)
|
|||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
prettier: true
|
prettier: true
|
||||||
class: 'justify-center'
|
|
||||||
ignore:
|
ignore:
|
||||||
- title
|
- title
|
||||||
props:
|
props:
|
||||||
@@ -174,7 +169,6 @@ Use the `side` prop to set the side of the screen where the Slideover will slide
|
|||||||
prettier: true
|
prettier: true
|
||||||
ignore:
|
ignore:
|
||||||
- title
|
- title
|
||||||
class: 'justify-center'
|
|
||||||
props:
|
props:
|
||||||
side: 'left'
|
side: 'left'
|
||||||
title: 'Slideover with side'
|
title: 'Slideover with side'
|
||||||
@@ -203,7 +197,6 @@ Use the `overlay` prop to control whether the Slideover has an overlay or not. D
|
|||||||
prettier: true
|
prettier: true
|
||||||
ignore:
|
ignore:
|
||||||
- title
|
- title
|
||||||
class: 'justify-center'
|
|
||||||
props:
|
props:
|
||||||
overlay: false
|
overlay: false
|
||||||
title: 'Slideover without overlay'
|
title: 'Slideover without overlay'
|
||||||
@@ -232,7 +225,6 @@ Use the `transition` prop to control whether the Slideover is animated or not. D
|
|||||||
prettier: true
|
prettier: true
|
||||||
ignore:
|
ignore:
|
||||||
- title
|
- title
|
||||||
class: 'justify-center'
|
|
||||||
props:
|
props:
|
||||||
transition: false
|
transition: false
|
||||||
title: 'Slideover without transition'
|
title: 'Slideover without transition'
|
||||||
@@ -262,7 +254,6 @@ prettier: true
|
|||||||
ignore:
|
ignore:
|
||||||
- title
|
- title
|
||||||
- preventClose
|
- preventClose
|
||||||
class: 'justify-center'
|
|
||||||
props:
|
props:
|
||||||
preventClose: true
|
preventClose: true
|
||||||
title: 'Slideover prevent close'
|
title: 'Slideover prevent close'
|
||||||
@@ -291,7 +282,6 @@ You can control the open state by using the `default-open` prop or the `v-model:
|
|||||||
::component-example
|
::component-example
|
||||||
---
|
---
|
||||||
name: 'slideover-open-example'
|
name: 'slideover-open-example'
|
||||||
class: 'justify-center'
|
|
||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
@@ -325,7 +315,6 @@ Then, use it in your app:
|
|||||||
::component-example
|
::component-example
|
||||||
---
|
---
|
||||||
name: 'slideover-programmatic-example'
|
name: 'slideover-programmatic-example'
|
||||||
class: 'justify-center'
|
|
||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
@@ -340,7 +329,6 @@ You can nest slideovers within each other.
|
|||||||
::component-example
|
::component-example
|
||||||
---
|
---
|
||||||
name: 'slideover-nested-example'
|
name: 'slideover-nested-example'
|
||||||
class: 'justify-center'
|
|
||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
@@ -351,7 +339,6 @@ Use the `#footer` slot to add content after the Slideover's body.
|
|||||||
::component-example
|
::component-example
|
||||||
---
|
---
|
||||||
name: 'slideover-footer-slot-example'
|
name: 'slideover-footer-slot-example'
|
||||||
class: 'justify-center'
|
|
||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
|
|||||||
@@ -100,7 +100,6 @@ Use the `orientation` prop to change the orientation of the Slider. Defaults to
|
|||||||
ignore:
|
ignore:
|
||||||
- defaultValue
|
- defaultValue
|
||||||
- class
|
- class
|
||||||
class: 'justify-center'
|
|
||||||
props:
|
props:
|
||||||
orientation: vertical
|
orientation: vertical
|
||||||
defaultValue: 50
|
defaultValue: 50
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ Use the `text` prop to set the content of the Tooltip.
|
|||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
prettier: true
|
prettier: true
|
||||||
class: 'justify-center'
|
|
||||||
props:
|
props:
|
||||||
text: 'Open on GitHub'
|
text: 'Open on GitHub'
|
||||||
slots:
|
slots:
|
||||||
@@ -75,7 +74,6 @@ Use the `delay-duration` prop to change the delay before the Tooltip appears. Fo
|
|||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
prettier: true
|
prettier: true
|
||||||
class: 'justify-center'
|
|
||||||
ignore:
|
ignore:
|
||||||
- text
|
- text
|
||||||
props:
|
props:
|
||||||
@@ -101,7 +99,6 @@ Use the `content` prop to control how the Tooltip content is rendered, like its
|
|||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
prettier: true
|
prettier: true
|
||||||
class: 'justify-center'
|
|
||||||
ignore:
|
ignore:
|
||||||
- text
|
- text
|
||||||
items:
|
items:
|
||||||
@@ -136,7 +133,6 @@ Use the `arrow` prop to display an arrow on the Tooltip.
|
|||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
prettier: true
|
prettier: true
|
||||||
class: 'justify-center'
|
|
||||||
ignore:
|
ignore:
|
||||||
- text
|
- text
|
||||||
- arrow
|
- arrow
|
||||||
@@ -159,7 +155,6 @@ Use the `disabled` prop to disable the Tooltip.
|
|||||||
::component-code
|
::component-code
|
||||||
---
|
---
|
||||||
prettier: true
|
prettier: true
|
||||||
class: 'justify-center'
|
|
||||||
ignore:
|
ignore:
|
||||||
- text
|
- text
|
||||||
props:
|
props:
|
||||||
@@ -183,7 +178,6 @@ You can control the open state by using the `default-open` prop or the `v-model:
|
|||||||
::component-example
|
::component-example
|
||||||
---
|
---
|
||||||
name: 'tooltip-open-example'
|
name: 'tooltip-open-example'
|
||||||
class: 'justify-center'
|
|
||||||
---
|
---
|
||||||
::
|
::
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user