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 NavbarExample from './navbar/examples/NavbarExample.vue'
|
||||
import NavbarSolidExample from './navbar/examples/NavbarSolidExample.vue'
|
||||
import NavbarActionButtonExample from './navbar/examples/NavbarActionButtonExample.vue'
|
||||
import NavbarCustomMobileIconExample from './navbar/examples/NavbarCustomMobileIconExample.vue'
|
||||
import FwbNavbarExample from './navbar/examples/FwbNavbarExample.vue'
|
||||
import FwbNavbarExampleSolid from './navbar/examples/FwbNavbarExampleSolid.vue'
|
||||
import FwbNavbarExampleActionButton from './navbar/examples/FwbNavbarExampleActionButton.vue'
|
||||
import FwbNavbarExampleCustomMobileIcon from './navbar/examples/FwbNavbarExampleCustomMobileIcon.vue'
|
||||
|
||||
</script>
|
||||
# Vue Navbar – Flowbite
|
||||
@@ -10,110 +10,171 @@ The navbar component can be used to show a list of navigation links positioned o
|
||||
|
||||
## Default navbar
|
||||
|
||||
<fwb-navbar-example />
|
||||
```vue
|
||||
<script setup>
|
||||
import { Navbar, NavbarLogo, NavbarCollapse, NavbarLink } from 'flowbite-vue'
|
||||
</script>
|
||||
<template>
|
||||
<Navbar>
|
||||
<template #logo>
|
||||
<NavbarLogo link="https://www.google.com/" alt="Flowbite logo" image-url="https://flowbite.com/docs/images/logo.svg">
|
||||
Flowbite
|
||||
</NavbarLogo>
|
||||
</template>
|
||||
<template #default="{isShowMenu}">
|
||||
<NavbarCollapse :isShowMenu="isShowMenu">
|
||||
<NavbarLink isActive link="#">Home</NavbarLink>
|
||||
<NavbarLink link="#">Services</NavbarLink>
|
||||
<NavbarLink link="#">Pricing</NavbarLink>
|
||||
<NavbarLink link="#">Contact</NavbarLink>
|
||||
</NavbarCollapse>
|
||||
</template>
|
||||
</Navbar>
|
||||
<fwb-navbar>
|
||||
<template #logo>
|
||||
<fwb-navbar-logo alt="Flowbite logo" image-url="/images/logo.svg" link="#">
|
||||
Flowbite
|
||||
</fwb-navbar-logo>
|
||||
</template>
|
||||
<template #default="{isShowMenu}">
|
||||
<fwb-navbar-collapse :is-show-menu="isShowMenu">
|
||||
<fwb-navbar-link is-active link="#">
|
||||
Home
|
||||
</fwb-navbar-link>
|
||||
<fwb-navbar-link link="#">
|
||||
Services
|
||||
</fwb-navbar-link>
|
||||
<fwb-navbar-link link="#">
|
||||
Pricing
|
||||
</fwb-navbar-link>
|
||||
<fwb-navbar-link link="#">
|
||||
Contact
|
||||
</fwb-navbar-link>
|
||||
</fwb-navbar-collapse>
|
||||
</template>
|
||||
</fwb-navbar>
|
||||
</template>
|
||||
```
|
||||
|
||||
<NavbarExample />
|
||||
<script setup>
|
||||
import {
|
||||
FwbNavbar,
|
||||
FwbNavbarCollapse,
|
||||
FwbNavbarLink,
|
||||
FwbNavbarLogo,
|
||||
} from 'flowbite-vue'
|
||||
</script>
|
||||
```
|
||||
|
||||
## Solid navbar
|
||||
```vue
|
||||
<script setup>
|
||||
import { Navbar, NavbarLogo, NavbarCollapse, NavbarLink } from 'flowbite-vue'
|
||||
</script>
|
||||
<template>
|
||||
<Navbar solid>
|
||||
<template #logo>
|
||||
<NavbarLogo link="https://www.google.com/" alt="Flowbite logo" image-url="https://flowbite.com/docs/images/logo.svg">
|
||||
Flowbite
|
||||
</NavbarLogo>
|
||||
</template>
|
||||
<template #default="{isShowMenu}">
|
||||
<NavbarCollapse :isShowMenu="isShowMenu">
|
||||
<NavbarLink is-active>Home</NavbarLink>
|
||||
<NavbarLink>Services</NavbarLink>
|
||||
<NavbarLink>Pricing</NavbarLink>
|
||||
<NavbarLink>Contact</NavbarLink>
|
||||
</NavbarCollapse>
|
||||
</template>
|
||||
</Navbar>
|
||||
</template>
|
||||
```
|
||||
|
||||
<NavbarSolidExample />
|
||||
<fwb-navbar-example-solid />
|
||||
```vue
|
||||
<template>
|
||||
<fwb-navbar solid>
|
||||
<template #logo>
|
||||
<fwb-navbar-logo alt="Flowbite logo" image-url="/images/logo.svg" link="#">
|
||||
Flowbite
|
||||
</fwb-navbar-logo>
|
||||
</template>
|
||||
<template #default="{isShowMenu}">
|
||||
<fwb-navbar-collapse :is-show-menu="isShowMenu">
|
||||
<fwb-navbar-link is-active link="#">
|
||||
Home
|
||||
</fwb-navbar-link>
|
||||
<fwb-navbar-link link="#">
|
||||
Services
|
||||
</fwb-navbar-link>
|
||||
<fwb-navbar-link link="#">
|
||||
Pricing
|
||||
</fwb-navbar-link>
|
||||
<fwb-navbar-link link="#">
|
||||
Contact
|
||||
</fwb-navbar-link>
|
||||
</fwb-navbar-collapse>
|
||||
</template>
|
||||
</fwb-navbar>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {
|
||||
FwbNavbar,
|
||||
FwbNavbarCollapse,
|
||||
FwbNavbarLink,
|
||||
FwbNavbarLogo,
|
||||
} from 'flowbite-vue'
|
||||
</script>
|
||||
```
|
||||
|
||||
## Navbar with action button
|
||||
```vue
|
||||
<script setup>
|
||||
import { Navbar, NavbarLogo, NavbarCollapse, NavbarLink } from 'flowbite-vue'
|
||||
</script>
|
||||
<template>
|
||||
<Navbar>
|
||||
<template #logo>
|
||||
<NavbarLogo link="https://www.google.com/" alt="Flowbite logo" image-url="https://flowbite.com/docs/images/logo.svg">
|
||||
Flowbite
|
||||
</NavbarLogo>
|
||||
</template>
|
||||
<template #default="{isShowMenu}">
|
||||
<NavbarCollapse :isShowMenu="isShowMenu">
|
||||
<NavbarLink is-active>Home</NavbarLink>
|
||||
<NavbarLink>Services</NavbarLink>
|
||||
<NavbarLink>Pricing</NavbarLink>
|
||||
<NavbarLink>Contact</NavbarLink>
|
||||
</NavbarCollapse>
|
||||
</template>
|
||||
<template #right-side>
|
||||
<button type="button" class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center mr-3 md:mr-0 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">Get started</button>
|
||||
</template>
|
||||
</Navbar>
|
||||
</template>
|
||||
```
|
||||
|
||||
<NavbarActionButtonExample />
|
||||
<fwb-navbar-example-action-button />
|
||||
```vue
|
||||
<template>
|
||||
<fwb-navbar>
|
||||
<template #logo>
|
||||
<fwb-navbar-logo alt="Flowbite logo" image-url="/images/logo.svg" link="#">
|
||||
Flowbite
|
||||
</fwb-navbar-logo>
|
||||
</template>
|
||||
<template #default="{isShowMenu}">
|
||||
<fwb-navbar-collapse :is-show-menu="isShowMenu">
|
||||
<fwb-navbar-link is-active link="#">
|
||||
Home
|
||||
</fwb-navbar-link>
|
||||
<fwb-navbar-link link="#">
|
||||
Services
|
||||
</fwb-navbar-link>
|
||||
<fwb-navbar-link link="#">
|
||||
Pricing
|
||||
</fwb-navbar-link>
|
||||
<fwb-navbar-link link="#">
|
||||
Contact
|
||||
</fwb-navbar-link>
|
||||
</fwb-navbar-collapse>
|
||||
</template>
|
||||
<template #right-side>
|
||||
<fwb-button>
|
||||
Get started
|
||||
</fwb-button>
|
||||
</template>
|
||||
</fwb-navbar>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {
|
||||
FwbButton,
|
||||
FwbNavbar,
|
||||
FwbNavbarCollapse,
|
||||
FwbNavbarLink,
|
||||
FwbNavbarLogo,
|
||||
} from 'flowbite-vue'
|
||||
</script>
|
||||
```
|
||||
|
||||
## Navbar with custom mobile icon
|
||||
|
||||
<fwb-navbar-example-custom-mobile-icon />
|
||||
```vue
|
||||
<script setup>
|
||||
import { Navbar, NavbarLogo, NavbarCollapse, NavbarLink } from 'flowbite-vue'
|
||||
</script>
|
||||
<template>
|
||||
<Navbar>
|
||||
<template #logo>
|
||||
<NavbarLogo link="https://www.google.com/" alt="Flowbite logo" image-url="https://flowbite.com/docs/images/logo.svg">
|
||||
Flowbite
|
||||
</NavbarLogo>
|
||||
</template>
|
||||
<template #default="{isShowMenu}">
|
||||
<NavbarCollapse :isShowMenu="isShowMenu">
|
||||
<NavbarLink is-active>Home</NavbarLink>
|
||||
<NavbarLink>Services</NavbarLink>
|
||||
<NavbarLink>Pricing</NavbarLink>
|
||||
<NavbarLink>Contact</NavbarLink>
|
||||
</NavbarCollapse>
|
||||
</template>
|
||||
<template #menu-icon>
|
||||
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"></path></svg>
|
||||
</template>
|
||||
</Navbar>
|
||||
<fwb-navbar>
|
||||
<template #logo>
|
||||
<fwb-navbar-logo alt="Flowbite logo" image-url="/images/logo.svg" link="#">
|
||||
Flowbite
|
||||
</fwb-navbar-logo>
|
||||
</template>
|
||||
<template #default="{isShowMenu}">
|
||||
<fwb-navbar-collapse :is-show-menu="isShowMenu">
|
||||
<fwb-navbar-link is-active link="#">
|
||||
Home
|
||||
</fwb-navbar-link>
|
||||
<fwb-navbar-link link="#">
|
||||
Services
|
||||
</fwb-navbar-link>
|
||||
<fwb-navbar-link link="#">
|
||||
Pricing
|
||||
</fwb-navbar-link>
|
||||
<fwb-navbar-link link="#">
|
||||
Contact
|
||||
</fwb-navbar-link>
|
||||
</fwb-navbar-collapse>
|
||||
</template>
|
||||
<template #menu-icon>
|
||||
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" />
|
||||
</svg>
|
||||
</template>
|
||||
</fwb-navbar>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {
|
||||
FwbNavbar,
|
||||
FwbNavbarCollapse,
|
||||
FwbNavbarLink,
|
||||
FwbNavbarLogo,
|
||||
} from 'flowbite-vue'
|
||||
</script>
|
||||
```
|
||||
<NavbarCustomMobileIconExample />
|
||||
|
||||
Reference in New Issue
Block a user