Components renaming (#225)
* refactor: eslint config adjusted for better diff's * refactor: stricter linting + dependencies updated * refactoring: paragraph component - component - docs * refactoring: heading component - component - docs * Update docs/components/heading.md Co-authored-by: Ilya Artamonov <ilya.sosidka@gmail.com> * refactoring: link component - component - docs * refactoring: image component - component - docs * refactoring: alert component - component - docs * refactoring: avatar component - component - docs * refactoring: removed unnecessary code - component names come from the file name * refactoring: breadcrumb component - component - docs * refactoring: accordion component - component - docs * refactoring: buttom component - component - docs * refactoring: badge component - component - docs * refactoring: card component - component - docs * refactoring: order of components in docs updated * refactoring: unnecessary semicolons removed * refactoring: button group component - component - docs * refactoring: carousel component - component - docs * refactoring: dropdown component - component - docs * refactoring: footer component - component - docs * refactoring:list-group component - component - docs * refactoring: modal component - component - docs * refactoring: navbar component - component - docs * refactoring: pagination component - component - docs * refactoring: progress component - component - docs * refactoring: rating component - component - docs * refactoring: spinner component - component - docs * refactoring: table component - component - docs * refactoring: tabs component - component - docs * feat: Updated pagination examples * lint: Lister fixes * feat: Sidebar component and some fixes * feat: Input component * feat: Some fixes * feat: Some fixes * chore: update deps * refactor: removed old Modal component * refactor: radio component and some fixes * fix: fixed path error * refactor: Range component * refactoring: timeline component - component - docs * refactor: Select component * refactoring: toast component - component - docs * refactoring: tooltip component - component - docs * refactoring: sidebar component - component - docs * refactoring: input component - component - docs * refactoring: fileInput component - component - docs * refactoring: select component - component - docs * refactoring: textarea component - component - docs * refactoring: checkbox component - component - docs * refactoring: radio component - component - docs * refactoring: toggle component - component - docs * refactoring: range component - component - docs * local configs linted * documentation quick start updated * flowbite-themable refactored to fit new linters and style guide * random linter fixes * refactoring: toast-provider component - component - docs * final linter fixes * lint: Linter fixes * fix: Fixed types * fix: Fixed card component * docs: Updated card examples * fix: Fixed tabs * refactor: Heading component refactoring * Fwb rename - few fixes after component review (#237) * fix: button documentation * fix: model type in range examples * chore: Toast marked as WIP --------- Co-authored-by: Sqrcz <naorniakowski@slashlab.pl> Co-authored-by: Sqrcz <naorniakowski@gmail.com>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<script setup>
|
||||
import ListGroupExample from './listGroup/examples/ListGroupExample.vue'
|
||||
import ListGroupHoverExample from './listGroup/examples/ListGroupHoverExample.vue'
|
||||
import ListGroupHoverIconExample from './listGroup/examples/ListGroupHoverIconExample.vue'
|
||||
import ListGroupHoverIconDisabledExample from './listGroup/examples/ListGroupHoverIconDisabledExample.vue'
|
||||
import FwbListGroupExample from './listGroup/examples/FwbListGroupExample.vue'
|
||||
import FwbListGroupExampleDisabled from './listGroup/examples/FwbListGroupExampleDisabled.vue'
|
||||
import FwbListGroupExampleHover from './listGroup/examples/FwbListGroupExampleHover.vue'
|
||||
import FwbListGroupExampleIcon from './listGroup/examples/FwbListGroupExampleIcon.vue'
|
||||
</script>
|
||||
|
||||
# Vue List Group - Flowbite
|
||||
@@ -17,114 +17,132 @@ Original reference: [https://flowbite.com/docs/components/list-group/](https://f
|
||||
|
||||
The list group component can be used to display a series of elements, buttons or links inside a single card component similar to a sidebar.
|
||||
|
||||
## No hover
|
||||
```vue
|
||||
<script setup>
|
||||
import { ListGroup, ListGroupItem } from 'flowbite-vue'
|
||||
</script>
|
||||
<template>
|
||||
<list-group>
|
||||
<list-group-item :hover="false">Item 1</list-group-item>
|
||||
<list-group-item :hover="false">Item 2</list-group-item>
|
||||
<list-group-item :hover="false">Item 3</list-group-item>
|
||||
<list-group-item :hover="false">Item 4</list-group-item>
|
||||
<list-group-item :hover="false">Item 5</list-group-item>
|
||||
</list-group>
|
||||
</template>
|
||||
```
|
||||
## Default
|
||||
|
||||
<ListGroupExample />
|
||||
<fwb-list-group-example />
|
||||
```vue
|
||||
<template>
|
||||
<fwb-list-group>
|
||||
<fwb-list-group-item>Item 1</fwb-list-group-item>
|
||||
<fwb-list-group-item>Item 2</fwb-list-group-item>
|
||||
<fwb-list-group-item>Item 3</fwb-list-group-item>
|
||||
<fwb-list-group-item>Item 4</fwb-list-group-item>
|
||||
<fwb-list-group-item>Item 5</fwb-list-group-item>
|
||||
</fwb-list-group>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { FwbListGroup, FwbListGroupItem } from 'flowbite-vue'
|
||||
</script>
|
||||
```
|
||||
|
||||
## Hover
|
||||
```vue
|
||||
<script setup>
|
||||
import { ListGroup, ListGroupItem } from 'flowbite-vue'
|
||||
</script>
|
||||
<template>
|
||||
<list-group>
|
||||
<list-group-item>Item 1</list-group-item>
|
||||
<list-group-item>Item 2</list-group-item>
|
||||
<list-group-item>Item 3</list-group-item>
|
||||
<list-group-item>Item 4</list-group-item>
|
||||
<list-group-item>Item 5</list-group-item>
|
||||
</list-group>
|
||||
</template>
|
||||
```
|
||||
|
||||
<ListGroupHoverExample />
|
||||
<fwb-list-group-example-hover />
|
||||
```vue
|
||||
<template>
|
||||
<fwb-list-group>
|
||||
<fwb-list-group-item hover>Item 1</fwb-list-group-item>
|
||||
<fwb-list-group-item hover>Item 2</fwb-list-group-item>
|
||||
<fwb-list-group-item hover>Item 3</fwb-list-group-item>
|
||||
<fwb-list-group-item hover>Item 4</fwb-list-group-item>
|
||||
<fwb-list-group-item hover>Item 5</fwb-list-group-item>
|
||||
</fwb-list-group>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { FwbListGroup, FwbListGroupItem } from 'flowbite-vue'
|
||||
</script>
|
||||
```
|
||||
|
||||
## Icon
|
||||
|
||||
<fwb-list-group-example-icon />
|
||||
```vue
|
||||
<script setup>
|
||||
import { ListGroup, ListGroupItem } from 'flowbite-vue'
|
||||
</script>
|
||||
<template>
|
||||
<list-group>
|
||||
<list-group-item>
|
||||
<fwb-list-group>
|
||||
<fwb-list-group-item>
|
||||
<template #prefix>
|
||||
<svg class="w-4 h-4 fill-current" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z" clip-rule="evenodd"></path></svg>
|
||||
<svg class="w-4 h-4 fill-current" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
||||
<path clip-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z" fill-rule="evenodd" />
|
||||
</svg>
|
||||
</template>
|
||||
Profile
|
||||
</list-group-item>
|
||||
<list-group-item>
|
||||
</fwb-list-group-item>
|
||||
<fwb-list-group-item>
|
||||
<template #prefix>
|
||||
<svg class="w-4 h-4 fill-current" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 4a1 1 0 00-2 0v7.268a2 2 0 000 3.464V16a1 1 0 102 0v-1.268a2 2 0 000-3.464V4zM11 4a1 1 0 10-2 0v1.268a2 2 0 000 3.464V16a1 1 0 102 0V8.732a2 2 0 000-3.464V4zM16 3a1 1 0 011 1v7.268a2 2 0 010 3.464V16a1 1 0 11-2 0v-1.268a2 2 0 010-3.464V4a1 1 0 011-1z"></path></svg>
|
||||
<svg class="w-4 h-4 fill-current" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M5 4a1 1 0 00-2 0v7.268a2 2 0 000 3.464V16a1 1 0 102 0v-1.268a2 2 0 000-3.464V4zM11 4a1 1 0 10-2 0v1.268a2 2 0 000 3.464V16a1 1 0 102 0V8.732a2 2 0 000-3.464V4zM16 3a1 1 0 011 1v7.268a2 2 0 010 3.464V16a1 1 0 11-2 0v-1.268a2 2 0 010-3.464V4a1 1 0 011-1z" />
|
||||
</svg>
|
||||
</template>
|
||||
Settings
|
||||
</list-group-item>
|
||||
<list-group-item>
|
||||
</fwb-list-group-item>
|
||||
<fwb-list-group-item>
|
||||
<template #prefix>
|
||||
<svg class="w-4 h-4 fill-current" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M5 3a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2V5a2 2 0 00-2-2H5zm0 2h10v7h-2l-1 2H8l-1-2H5V5z" clip-rule="evenodd"></path></svg>
|
||||
<svg class="w-4 h-4 fill-current" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
||||
<path clip-rule="evenodd" d="M5 3a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2V5a2 2 0 00-2-2H5zm0 2h10v7h-2l-1 2H8l-1-2H5V5z" fill-rule="evenodd" />
|
||||
</svg>
|
||||
</template>
|
||||
Messages
|
||||
</list-group-item>
|
||||
<list-group-item>
|
||||
</fwb-list-group-item>
|
||||
<fwb-list-group-item>
|
||||
<template #suffix>
|
||||
<svg class="w-4 h-4 fill-current" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M2 9.5A3.5 3.5 0 005.5 13H9v2.586l-1.293-1.293a1 1 0 00-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L11 15.586V13h2.5a4.5 4.5 0 10-.616-8.958 4.002 4.002 0 10-7.753 1.977A3.5 3.5 0 002 9.5zm9 3.5H9V8a1 1 0 012 0v5z" clip-rule="evenodd"></path></svg>
|
||||
<svg class="w-4 h-4 fill-current" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
||||
<path clip-rule="evenodd" d="M2 9.5A3.5 3.5 0 005.5 13H9v2.586l-1.293-1.293a1 1 0 00-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L11 15.586V13h2.5a4.5 4.5 0 10-.616-8.958 4.002 4.002 0 10-7.753 1.977A3.5 3.5 0 002 9.5zm9 3.5H9V8a1 1 0 012 0v5z" fill-rule="evenodd" />
|
||||
</svg>
|
||||
</template>
|
||||
Download
|
||||
</list-group-item>
|
||||
</list-group>
|
||||
</fwb-list-group-item>
|
||||
</fwb-list-group>
|
||||
</template>
|
||||
```
|
||||
|
||||
<ListGroupHoverIconExample />
|
||||
<script setup>
|
||||
import { FwbListGroup, FwbListGroupItem } from 'flowbite-vue'
|
||||
</script>
|
||||
```
|
||||
|
||||
## Disabled
|
||||
|
||||
<fwb-list-group-example-disabled />
|
||||
```vue
|
||||
<script setup>
|
||||
import { ListGroup, ListGroupItem } from 'flowbite-vue'
|
||||
</script>
|
||||
<template>
|
||||
<list-group>
|
||||
<list-group-item>
|
||||
<fwb-list-group>
|
||||
<fwb-list-group-item>
|
||||
<template #prefix>
|
||||
<svg class="w-4 h-4 fill-current" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z" clip-rule="evenodd"></path></svg>
|
||||
<svg class="w-4 h-4 fill-current" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
||||
<path clip-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z" fill-rule="evenodd" />
|
||||
</svg>
|
||||
</template>
|
||||
Profile
|
||||
</list-group-item>
|
||||
<list-group-item>
|
||||
</fwb-list-group-item>
|
||||
<fwb-list-group-item>
|
||||
<template #prefix>
|
||||
<svg class="w-4 h-4 fill-current" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 4a1 1 0 00-2 0v7.268a2 2 0 000 3.464V16a1 1 0 102 0v-1.268a2 2 0 000-3.464V4zM11 4a1 1 0 10-2 0v1.268a2 2 0 000 3.464V16a1 1 0 102 0V8.732a2 2 0 000-3.464V4zM16 3a1 1 0 011 1v7.268a2 2 0 010 3.464V16a1 1 0 11-2 0v-1.268a2 2 0 010-3.464V4a1 1 0 011-1z"></path></svg>
|
||||
<svg class="w-4 h-4 fill-current" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M5 4a1 1 0 00-2 0v7.268a2 2 0 000 3.464V16a1 1 0 102 0v-1.268a2 2 0 000-3.464V4zM11 4a1 1 0 10-2 0v1.268a2 2 0 000 3.464V16a1 1 0 102 0V8.732a2 2 0 000-3.464V4zM16 3a1 1 0 011 1v7.268a2 2 0 010 3.464V16a1 1 0 11-2 0v-1.268a2 2 0 010-3.464V4a1 1 0 011-1z" />
|
||||
</svg>
|
||||
</template>
|
||||
Settings
|
||||
</list-group-item>
|
||||
<list-group-item>
|
||||
</fwb-list-group-item>
|
||||
<fwb-list-group-item>
|
||||
<template #prefix>
|
||||
<svg class="w-4 h-4 fill-current" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M5 3a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2V5a2 2 0 00-2-2H5zm0 2h10v7h-2l-1 2H8l-1-2H5V5z" clip-rule="evenodd"></path></svg>
|
||||
<svg class="w-4 h-4 fill-current" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
||||
<path clip-rule="evenodd" d="M5 3a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2V5a2 2 0 00-2-2H5zm0 2h10v7h-2l-1 2H8l-1-2H5V5z" fill-rule="evenodd" />
|
||||
</svg>
|
||||
</template>
|
||||
Messages
|
||||
</list-group-item>
|
||||
<list-group-item disabled>
|
||||
</fwb-list-group-item>
|
||||
<fwb-list-group-item disabled>
|
||||
<template #prefix>
|
||||
<svg class="w-4 h-4 fill-current" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M2 9.5A3.5 3.5 0 005.5 13H9v2.586l-1.293-1.293a1 1 0 00-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L11 15.586V13h2.5a4.5 4.5 0 10-.616-8.958 4.002 4.002 0 10-7.753 1.977A3.5 3.5 0 002 9.5zm9 3.5H9V8a1 1 0 012 0v5z" clip-rule="evenodd"></path></svg>
|
||||
<svg class="w-4 h-4 fill-current" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
||||
<path clip-rule="evenodd" d="M2 9.5A3.5 3.5 0 005.5 13H9v2.586l-1.293-1.293a1 1 0 00-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L11 15.586V13h2.5a4.5 4.5 0 10-.616-8.958 4.002 4.002 0 10-7.753 1.977A3.5 3.5 0 002 9.5zm9 3.5H9V8a1 1 0 012 0v5z" fill-rule="evenodd" />
|
||||
</svg>
|
||||
</template>
|
||||
Download
|
||||
</list-group-item>
|
||||
</list-group>
|
||||
</fwb-list-group-item>
|
||||
</fwb-list-group>
|
||||
</template>
|
||||
```
|
||||
|
||||
<ListGroupHoverIconDisabledExample />
|
||||
<script setup>
|
||||
import { FwbListGroup, FwbListGroupItem } from 'flowbite-vue'
|
||||
</script>
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user