* 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>
94 lines
2.9 KiB
Markdown
94 lines
2.9 KiB
Markdown
<script setup>
|
|
import FwbBreadcrumbExample from './breadcrumb/examples/FwbBreadcrumbExample.vue'
|
|
import FwbBreadcrumbExampleSolid from './breadcrumb/examples/FwbBreadcrumbExampleSolid.vue'
|
|
import FwbBreadcrumbExampleCustomIcons from './breadcrumb/examples/FwbBreadcrumbExampleCustomIcons.vue'
|
|
</script>
|
|
# Vue Breadcrumb - Flowbite
|
|
The breadcrumb component is an important part of any website or application that can be used to show the current location of a page in a hierarchical structure of pages.
|
|
|
|
Flowbite includes two styles of breadcrumb elements, one that has a transparent background and a few more that come with a background in different colors.
|
|
|
|
## Default breadcrumb
|
|
|
|
<fwb-breadcrumb-example />
|
|
```vue
|
|
<template>
|
|
<fwb-breadcrumb>
|
|
<fwb-breadcrumb-item home href="#">
|
|
Home
|
|
</fwb-breadcrumb-item>
|
|
<fwb-breadcrumb-item href="#">
|
|
Projects
|
|
</fwb-breadcrumb-item>
|
|
<fwb-breadcrumb-item>
|
|
Flowbite
|
|
</fwb-breadcrumb-item>
|
|
</fwb-breadcrumb>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { FwbBreadcrumb, FwbBreadcrumbItem } from 'flowbite-vue'
|
|
</script>
|
|
```
|
|
|
|
## Solid Breadcrumb
|
|
|
|
<fwb-breadcrumb-example-solid />
|
|
```vue
|
|
<template>
|
|
<fwb-breadcrumb solid>
|
|
<fwb-breadcrumb-item home href="#">
|
|
Home
|
|
</fwb-breadcrumb-item>
|
|
<fwb-breadcrumb-item href="#">
|
|
Projects
|
|
</fwb-breadcrumb-item>
|
|
<fwb-breadcrumb-item>
|
|
Flowbite
|
|
</fwb-breadcrumb-item>
|
|
</fwb-breadcrumb>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { FwbBreadcrumb, FwbBreadcrumbItem } from 'flowbite-vue'
|
|
</script>
|
|
```
|
|
|
|
## Custom Icons
|
|
|
|
<fwb-breadcrumb-example-custom-icons />
|
|
```vue
|
|
<template>
|
|
<fwb-breadcrumb>
|
|
<fwb-breadcrumb-item home href="#">
|
|
<template #home-icon>
|
|
<svg class="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" />
|
|
</svg>
|
|
</template>
|
|
Home
|
|
</fwb-breadcrumb-item>
|
|
<fwb-breadcrumb-item href="#">
|
|
<template #arrow-icon>
|
|
<svg class="w-4 h-4 text-gray-400 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M14 5l7 7m0 0l-7 7m7-7H3" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" />
|
|
</svg>
|
|
</template>
|
|
Projects
|
|
</fwb-breadcrumb-item>
|
|
<fwb-breadcrumb-item>
|
|
<template #arrow-icon>
|
|
<svg class="w-4 h-4 text-gray-400 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M14 5l7 7m0 0l-7 7m7-7H3" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" />
|
|
</svg>
|
|
</template>
|
|
Flowbite
|
|
</fwb-breadcrumb-item>
|
|
</fwb-breadcrumb>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { FwbBreadcrumb, FwbBreadcrumbItem } from 'flowbite-vue'
|
|
</script>
|
|
```
|