### Flowbite Vue Getting Started Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/index.md Provides a link to the getting started guide for Flowbite Vue, indicating the initial steps to integrate the library into a Vue 3 project. ```Markdown [Get Started](/pages/getting-started) ``` -------------------------------- ### Install Flowbite and Flowbite Vue Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/pages/getting-started.md Installs the Flowbite library and the Flowbite Vue component library as project dependencies. ```bash npm i flowbite flowbite-vue ``` -------------------------------- ### Install Tailwind CSS with Vite Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/pages/getting-started.md Installs Tailwind CSS and its Vite plugin as development dependencies. ```bash npm install -D tailwindcss @tailwindcss/vite ``` -------------------------------- ### Check Node.js Version Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/pages/getting-started.md Verifies that Node.js is installed and meets the minimum version requirement (18 or newer) for Flowbite Vue. ```bash node -v ``` -------------------------------- ### Vue Toast Provider Setup Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/components/toastProvider/toastProvider.md This snippet shows the basic setup for using the FwbToastProviderExample component within a Vue application. It imports the example component and renders it. ```vue ``` -------------------------------- ### Install Flowbite and Flowbite Vue Source: https://github.com/themesberg/flowbite-vue/blob/main/README.md Installs both the flowbite and flowbite-vue packages as project dependencies using npm. ```bash npm i flowbite flowbite-vue ``` -------------------------------- ### FwbButton Loading Examples Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/components/button.md Demonstrates the 'loading' prop for the FwbButton component, enabling a loading state with optional loading position and size adjustments. Includes examples with and without a suffix slot. Requires the FwbButton component and ref from 'vue'. ```vue ``` -------------------------------- ### Sidebar Examples Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/components/sidebar.md Imports various sidebar examples for Flowbite Vue, including basic sidebar, dropdown, group, CTA, and logo components. ```vue import FwbSidebarExample from './sidebar/examples/FwbSidebarExample.vue' import FwbSidebarDropdownExample from './sidebar/examples/FwbSidebarDropdownExample.vue' import FwbSidebarGroupExample from './sidebar/examples/FwbSidebarGroupExample.vue' import FwbSidebarCtaExample from './sidebar/examples/FwbSidebarCtaExample.vue' import FwbSidebarLogoExample from './sidebar/examples/FwbSidebarLogoExample.vue' ``` -------------------------------- ### Flowbite Themable Button Example Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/components/flowbiteThemable/flowbiteThemable.md Provides an example of integrating the Flowbite Themable component with the FwbButton component. This setup allows for consistent theming of buttons across the application. The 'theme' prop accepts color names. ```vue ``` -------------------------------- ### Basic FwbAlert Usage Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/pages/getting-started.md Demonstrates how to use the FwbAlert component in a Vue application to display a success message. ```vue ``` -------------------------------- ### Import Tailwind CSS Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/pages/getting-started.md Imports Tailwind CSS into the project's main style file. ```css @import "tailwindcss"; ``` -------------------------------- ### Update style.css for Flowbite Vue Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/pages/getting-started.md Imports Flowbite Vue styles and plugin, and sets up the source directory for Flowbite Vue components. ```css /* import Flowbite Vue styles */ @import "flowbite-vue/index.css"; /* import Flowbite plugin */ @plugin "flowbite/plugin"; /* add Flowbite Vue directory using @source directive */ @source "../node_modules/flowbite-vue"; ``` -------------------------------- ### FwbButton Shadow Examples Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/components/button.md Demonstrates the 'shadow' prop for the FwbButton component, applying shadow effects to buttons. This includes examples with default shadow colors and custom shadow colors. Requires the FwbButton component from 'flowbite-vue'. ```vue ``` -------------------------------- ### Configure Vite for Tailwind CSS Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/pages/getting-started.md Configures the Vite build tool to use the Tailwind CSS plugin. ```js import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import tailwindcss from '@tailwindcss/vite' export default defineConfig({ plugins: [ vue(), tailwindcss(), ], }) ``` -------------------------------- ### Default Jumbotron Example Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/components/jumbotron.md This example shows a title, description, and two CTA buttons for the jumbotron component. ```vue ``` -------------------------------- ### Basic Spinner Example Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/components/spinner.md Demonstrates the basic usage of the FwbSpinner component. It requires importing the component and can be used directly within the template. ```vue ``` -------------------------------- ### Flowbite Themable Dropdown Example Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/components/flowbiteThemable/flowbiteThemable.md Illustrates the usage of the Flowbite Themable component with the FwbDropdown component. This example shows how to apply a theme to a dropdown element. The 'theme' prop accepts predefined color strings. ```vue ``` -------------------------------- ### Vue Button Size Examples Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/components/button.md Illustrates the different size options available for the FwbButton component using the 'size' prop. ```vue ``` ``` -------------------------------- ### FwbButton Square Examples Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/components/button.md Shows how to use the 'square' prop to create square-shaped buttons. This example includes combinations with gradient, outline, and pill styles. Requires the FwbButton component from 'flowbite-vue'. ```vue ``` -------------------------------- ### Vue Button Duotone Gradient Examples Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/components/button.md Illustrates the 'gradient' prop for duotone (two-color) transitions on the FwbButton component. ```vue ``` ``` -------------------------------- ### Vue Button Color Examples Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/components/button.md Demonstrates the usage of the 'color' prop for the FwbButton component, showcasing different color options available. ```vue ``` ``` -------------------------------- ### Vue Button Monochrome Gradient Examples Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/components/button.md Demonstrates the use of the 'gradient' prop for monochrome color transitions on the FwbButton component. ```vue ``` ``` -------------------------------- ### Vue Textarea - Default Example Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/components/textarea.md Demonstrates the basic usage of the FwbTextarea component with a label and placeholder. It uses v-model for data binding and specifies the number of rows. ```vue ``` -------------------------------- ### Vue Navbar with Action Button Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/components/navbar.md Illustrates adding an action button, such as a 'Get started' button, to the right side of the Flowbite Vue Navbar. ```vue ``` -------------------------------- ### Flowbite Vue Pagination with Custom Slots Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/components/pagination.md This Vue component demonstrates advanced customization of the FwbPagination component using named slots. It allows developers to completely control the appearance and behavior of the first, last, previous, next, and page buttons. The example utilizes Vue's template syntax and script setup for defining the component's logic and state. ```vue ``` -------------------------------- ### Git Workflow for Contributions Source: https://github.com/themesberg/flowbite-vue/blob/main/CONTRIBUTING.md This snippet outlines the essential Git commands for contributing to an open-source project. It covers forking, cloning, branching, staging, committing, and pushing changes, along with best practices for commit messages and pull requests. ```git git clone https://github.com/github-username/repository-name.git git checkout -b branch-name-here git add insert-paths-of-changed-files-here git commit -m "Insert a short message of the changes made here" git push origin branch-name-here ``` -------------------------------- ### Hoverable Table Example Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/components/table.md Illustrates a table where rows highlight on hover, utilizing the `hoverable` prop from Flowbite Vue. It displays product details and an edit link, similar to the striped example. ```vue ``` -------------------------------- ### Dropdown Placement Examples Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/components/dropdown.md Demonstrates how to use the `fwb-dropdown` component with different `placement` options (top, right, bottom, left). Each dropdown contains a navigation list with clickable links. The component is imported from 'flowbite-vue'. ```vue ``` -------------------------------- ### Dropdown Alignment Examples Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/components/dropdown.md Illustrates the use of the `align-to-end` prop on the `fwb-dropdown` component to control the alignment of the dropdown menu relative to the trigger element. Examples include 'top', 'right', 'bottom', and 'left' placements, each with aligned dropdowns. ```vue ``` -------------------------------- ### Slot Listener Example Usage Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/components/PLAYGROUND/PLAYGROUND.md Demonstrates how to import and use the SlotListenerExample component within a Vue.js application. This component likely showcases how to listen for and react to slot content changes. ```vue ``` -------------------------------- ### Radio List Group Example Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/components/radio.md Illustrates using FwbRadio within a list group for a structured selection. This example uses FwbListGroup, FwbListGroupItem, and FwbP components from flowbite-vue. Requires Vue and relevant Flowbite Vue components. ```vue ``` -------------------------------- ### Default Modal Example Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/components/modal.md Demonstrates the basic usage of the FwbModal component, including how to open and close it using a button. It shows the structure for header, body, and footer content. ```vue ``` -------------------------------- ### Horizontal Radio List Group Example Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/components/radio.md Demonstrates arranging FwbRadio components horizontally within a list structure. This example uses FwbP and FwbRadio from flowbite-vue, along with custom Tailwind CSS classes for layout. Requires Vue and Flowbite Vue components. ```vue ``` -------------------------------- ### FwbButton Outline Examples Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/components/button.md Demonstrates the 'outline' prop for the FwbButton component, showing how to create outlined buttons with different color schemes. Requires the FwbButton component from 'flowbite-vue'. ```vue ``` -------------------------------- ### Vue Multi-level Sidebar Menu Example Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/components/sidebar.md This Vue.js code snippet illustrates how to construct a sidebar with nested dropdown menus using Flowbite Vue components. It utilizes FwbSidebar, FwbSidebarItem, and FwbSidebarDropdownItem to create a hierarchical navigation structure. The example includes SVG icons for menu items and a 'Pro' badge for a specific item. ```vue ``` -------------------------------- ### Basic Radio Example Source: https://github.com/themesberg/flowbite-vue/blob/main/docs/components/radio.md Demonstrates the basic usage of the FwbRadio component in Vue. It allows users to select one option from a set. Requires Vue and FwbRadio from flowbite-vue. ```vue ```