### Basic Pagination Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/pagination/index.md
Demonstrates a standard pagination setup. Ensure the component is provided with 'page', 'per-page', and 'total' props.
```vue
```
--------------------------------
### Basic Container Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/layout/container.md
Demonstrates the basic usage of the Container component. No specific setup or imports are required beyond including the component itself.
```vue
This is basic content inside the container.
```
--------------------------------
### Basic Filter Bar Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/filter/bar.md
Demonstrates a basic filter bar setup with a search input and filters. This example shows how to integrate the filter bar into a view.
```vue
```
--------------------------------
### Basic Color Picker Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/color/picker.md
Demonstrates a basic color picker that is displayed directly. No specific setup is required beyond including the component.
```vue
```
--------------------------------
### Basic Input Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/form/input/index.md
Demonstrates a simple form input field. No specific setup is required beyond including the component.
```vue
```
--------------------------------
### Compact Pagination Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/pagination/index.md
A compact example of how to use the Pagination component.
```APIDOC
::: example Compact || A compact pagination.
example=../../code/components/pagination/compact.vue
:::
```
--------------------------------
### Install @flux-ui/statistics and @flux-ui/components
Source: https://context7.com/basmilius/flux/llms.txt
Install the necessary packages using bun. Ensure both statistics and components packages are added.
```bash
bun add @flux-ui/statistics @flux-ui/components
```
--------------------------------
### Vue Script Setup with Type Imports
Source: https://github.com/basmilius/flux/blob/main/CLAUDE.md
Example of a Vue component using `
```
--------------------------------
### Basic Pagination Bar Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/pagination/bar.md
A simple implementation of the pagination bar. No specific setup is required beyond including the component.
```vue
Showing {{ perPage }} of {{ total }} items.
```
--------------------------------
### Basic Spinner Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/spinner.md
A basic spinner component. No specific setup is required beyond importing the component.
```vue
```
--------------------------------
### Basic Usage Example
Source: https://github.com/basmilius/flux/blob/main/docs/internals/composables/useInView.md
An example demonstrating how to import and use the useInView composable in a Vue component.
```APIDOC
## Usage
```ts
import { useInView } from '@flux-ui/internals';
import { useTemplateRef } from 'vue';
const element = useTemplateRef('element');
useInView(element, {
threshold: 1
});
```
This example shows how to create a template ref for an element and then pass it to `useInView` with a specific `threshold` option.
```
--------------------------------
### Install Flux UI Core Package (Bun)
Source: https://context7.com/basmilius/flux/llms.txt
Install the core Flux UI components package using Bun.
```bash
bun add @flux-ui/components
```
--------------------------------
### Basic Pagination Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/pagination/index.md
A basic example of how to use the Pagination component.
```APIDOC
::: example Basic || A basic pagination.
example=../../code/components/pagination/basic.vue
:::
```
--------------------------------
### Basic Window Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/window.md
Demonstrates a basic implementation of the Window component.
```vue
Default Slot Content
Filters Slot Content
```
--------------------------------
### Basic Kanban Board Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/kanban/index.md
Demonstrates a simple Kanban board with draggable items. This example sets up the basic structure for task management.
```vue
```
--------------------------------
### Basic Toolbar Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/toolbar/index.md
Demonstrates a basic implementation of the Toolbar component.
```vue
Toolbar Titlemdi-magnifymdi-dots-vertical
```
--------------------------------
### Install Vite Preset and Flux Components
Source: https://context7.com/basmilius/flux/llms.txt
Install Flux UI components, Sass embedded, and the Vite preset for source-level customization.
```bash
bun add @flux-ui/components sass-embedded @basmilius/vite-preset
```
--------------------------------
### Basic Action Bar
Source: https://github.com/basmilius/flux/blob/main/docs/components/action-bar.md
A simple and basic action bar example. No specific setup is required beyond including the component.
```vue
```
--------------------------------
### Basic Timeline Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/timeline/index.md
A simple demonstration of the Timeline component.
```vue
Content 1Content 2Content 3
```
--------------------------------
### Basic Ticks Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/ticks.md
A basic example demonstrating the Ticks component.
```vue
0100
```
--------------------------------
### Responsive Layout Example
Source: https://github.com/basmilius/flux/blob/main/docs/guide/composables/useBreakpoints.md
This example demonstrates how to create a responsive layout that adapts its direction based on the active breakpoint, switching from horizontal to vertical at the 'md' breakpoint.
```vue
Card 1Card 2
```
--------------------------------
### Install Flux Components
Source: https://github.com/basmilius/flux/blob/main/docs/index.md
Install the Flux components package using your preferred package manager.
```shell
bun add @flux-ui/components
```
```shell
pnpm install @flux-ui/components
```
```shell
yarn add @flux-ui/components
```
```shell
npm install @flux-ui/components
```
--------------------------------
### Re-authentication Overlay Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/overlay.md
An example of an overlay used for re-authentication purposes.
```vue
Please re-authenticate to continue.
```
--------------------------------
### Basic Input Group Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/form/input/group.md
A basic and simple example of an input group.
```vue
```
--------------------------------
### Install Flux UI Core Package (PNPM/Yarn/NPM)
Source: https://context7.com/basmilius/flux/llms.txt
Install the core Flux UI components package using PNPM, Yarn, or NPM.
```bash
pnpm install @flux-ui/components
```
--------------------------------
### Basic Publish Button
Source: https://github.com/basmilius/flux/blob/main/docs/components/button/publish.md
A basic example of how to use the publish button.
```vue
```
--------------------------------
### Basic Link Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/link.md
Demonstrates a basic usage of the Link component.
```APIDOC
## Basic Link
### Description
A simple link with default styling.
### Example
```vue
```
```
--------------------------------
### Chip List Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/chip.md
Chips can be placed within stacks to create a list. This example demonstrates basic chip usage in a list format.
```vue
```
--------------------------------
### Basic Tab Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/tabs/tab.md
A basic example demonstrating the usage of the Tab component. Ensure this component is used within the Tabs component for proper rendering.
```vue
Content 1
Content 2
```
--------------------------------
### Install Flux Statistics with Package Managers
Source: https://github.com/basmilius/flux/blob/main/docs/statistics/introduction/installation.md
Use your preferred package manager to add Flux Statistics and components to your project. This is the recommended installation method.
```shell
bun add @flux-ui/statistics @flux-ui/components
```
```shell
pnpm install @flux-ui/statistics @flux-ui/components
```
```shell
yarn add @flux-ui/statistics @flux-ui/components
```
```shell
npm install @flux-ui/statistics @flux-ui/components
```
--------------------------------
### Basic Link Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/link.md
A simple link component for internal navigation.
```vue
```
--------------------------------
### Install Flux with Vite Preset (Yarn)
Source: https://github.com/basmilius/flux/blob/main/docs/guide/introduction/installation/nuxt.md
Install Flux UI components, sass-embedded, and the Vite preset using Yarn for advanced configuration.
```shell
yarn add @flux-ui/components sass-embedded @basmilius/vite-preset
```
--------------------------------
### Free Grid Pattern Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/visual/grid-pattern.md
This example shows the grid pattern used without specific size constraints, allowing it to fill its parent container freely. It demonstrates the default behavior when no explicit dimensions are provided.
```vue
```
--------------------------------
### Basic Slide Over Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/slide-over.md
A simple implementation of the slide over component.
```vue
Slide over content
```
--------------------------------
### Link with Icon Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/link.md
Shows how to add an icon to the Link component.
```APIDOC
## Link with Icon
### Description
A link that includes an icon at the beginning.
### Example
```vue
```
```
--------------------------------
### Border Shine Button Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/visual/border-shine.md
Use this snippet on buttons to visually guide users towards subscription actions.
```vue
```
--------------------------------
### Vue Component Setup with Flux UI Imports
Source: https://github.com/basmilius/flux/blob/main/docs/playground.md
This script block sets up a Vue 3 component using the Composition API with `
```
--------------------------------
### Basic Overlay Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/overlay.md
A simple demonstration of how to use the basic overlay component.
```vue
This is the overlay content.
```
--------------------------------
### Tabs with Icon and Label Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/tabs/index.md
Shows how to combine both icons and labels for tabs.
```vue
Content 1
Content 2
Content 3
```
--------------------------------
### Basic Notice Stack Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/layout/flex/notice.md
Demonstrates a basic implementation of the notice stack component.
```vue
```
--------------------------------
### Basic FluxStepper Implementation
Source: https://github.com/basmilius/flux/blob/main/docs/guide/patterns/stepper-wizard.md
This example demonstrates a typical stepper wizard with three steps for setting up a workspace. It uses v-model to control the current step and includes navigation buttons.
```vue
Workspace {{ form.name }} is ready to go.
```
--------------------------------
### FluxApplicationTop.vue Example
Source: https://github.com/basmilius/flux/blob/main/docs/application/components/top.md
This snippet demonstrates the basic usage of the FluxApplicationTop component, including slots for start and end content, and a FluxTabBar for view navigation.
```vue
Settings
Home
About
```
--------------------------------
### Using useDisabled Composable
Source: https://github.com/basmilius/flux/blob/main/docs/guide/composables/useDisabled.md
Import and use the `useDisabled` composable to manage a component's disabled state, merging local and inherited states. This example shows how to integrate it within a Vue component's setup.
```typescript
import { useDisabled } from '@flux-ui/components';
import { toRef } from 'vue';
const { disabled: componentDisabled } = defineProps<{
disabled?: boolean;
}>();
const disabled = useDisabled(toRef(() => componentDisabled));
```
--------------------------------
### Utilize useBreakpoints for Responsive Layouts
Source: https://context7.com/basmilius/flux/llms.txt
Employ the useBreakpoints composable to get reactive boolean references for common viewport sizes (xs, sm, md, lg, xl). Use these refs to conditionally render or style components based on the current screen size. Ensure @flux-ui/components is installed.
```vue
Main contentSidebar
```
--------------------------------
### Responsive Grid Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/layout/grid/index.md
Illustrates how to create a responsive grid layout using breakpoint props. The layout adapts to different viewport sizes (xs, sm, md, lg, xl). The class `column-example` is used for styling.
```vue
1
2
3
4
5
6
7
8
9
10
11
12
```
--------------------------------
### Set up Flux Application Shell
Source: https://context7.com/basmilius/flux/llms.txt
Install and import the Flux Application shell components. This sets up the basic structure for a full application, including sidebar, top bar, and content areas.
```bash
bun add @flux-ui/application @flux-ui/components
```
```ts
// main.ts
import '@flux-ui/application/style.css';
import '@flux-ui/components/style.css';
```
```vue
```
--------------------------------
### Basic Pane Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/pane/index.md
Demonstrates the fundamental usage of the Pane component to display content.
```vue
This is the content of the pane.
```
--------------------------------
### FluxTooltipTransition.vue Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/transitions/tooltip.md
This is an example of the FluxTooltipTransition component. It demonstrates how to use the component in a Vue application.
```vue
{{ element.text }}
```
--------------------------------
### Install Vue Router
Source: https://github.com/basmilius/flux/blob/main/docs/guide/introduction/installation/vue-router.md
Install Vue Router using your preferred package manager.
```shell
bun add vue-router
```
```shell
pnpm install vue-router
```
```shell
yarn add vue-router
```
```shell
npm install vue-router
```
--------------------------------
### Basic Action Stack Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/layout/flex/action.md
Demonstrates a basic usage of the Action Stack component with action buttons.
```vue
Button 1Button 2Button 3
```
--------------------------------
### Basic Filter Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/filter/index.md
A fundamental example showcasing the basic usage of the Flux Filter component.
```vue
```
--------------------------------
### Basic Info Stack Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/layout/flex/info.md
Demonstrates a simple usage of the Info Stack component to display a few informational messages.
```vue
```
--------------------------------
### Editor Example for Focal Point Image Component
Source: https://github.com/basmilius/flux/blob/main/docs/components/focal-point/image.md
This example demonstrates the editor mode of the Focal Point Image component, allowing users to adjust the focal point. It uses the 'example' directive to load the editor implementation.
```vue
```
--------------------------------
### Controlled Collapsible Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/menu/collapsible.md
An example demonstrating how to control the open state of the collapsible externally using `v-model:isOpened`.
```APIDOC
::: example Controlled || Control the open state from outside with v-model:isOpened.
example=../../code/components/menu/collapsible/controlled.vue
:::
```
--------------------------------
### Install Flux Internals Package
Source: https://github.com/basmilius/flux/blob/main/docs/internals/index.md
Use the appropriate command for your package manager to install the Flux internals library.
```shell
bun add @flux-ui/internals
```
```shell
pnpm install @flux-ui/internals
```
```shell
yarn add @flux-ui/internals
```
```shell
npm install @flux-ui/internals
```
--------------------------------
### Basic Action Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/action.md
A simple demonstration of how to use the Action component with a basic label.
```vue
```
--------------------------------
### Clickable Pane as Link Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/pane/clickable.md
Example of using the Clickable Pane as an external link, opening a URL in a new tab.
```APIDOC
## Example: As Link
As link || A clickable pane that opens an external URL in a new tab.
```vue
Visit our website
```
```
--------------------------------
### Basic Collapsible Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/menu/collapsible.md
A basic example of a collapsible group without its own route. Click the header to toggle its open state.
```APIDOC
::: example Basic || A collapsible group without its own route. Click the header to toggle.
example=../../code/components/menu/collapsible/basic.vue
:::
```
--------------------------------
### Basic Aspect Ratio
Source: https://github.com/basmilius/flux/blob/main/docs/components/layout/aspect-ratio.md
A basic example of how to use the Aspect Ratio component.
```vue
```
--------------------------------
### Basic Form Row Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/form/row.md
A basic example demonstrating the usage of the Form Row component to arrange fields horizontally.
```vue
```
--------------------------------
### Selectable Chip Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/chip.md
A chip that is selectable can be used in filters. This example shows how to implement a selectable chip with a selected state.
```vue
```
--------------------------------
### Sticky Header Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/layout/sticky.md
Demonstrates a typical sticky header implementation. Use this for headers that should stick to the top of the viewport.
```vue
```
--------------------------------
### Basic Gallery Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/gallery/index.md
Displays a simple gallery with a predefined set of items. Ensure the 'items' prop is correctly bound to an array of image URLs.
```vue
```
--------------------------------
### Basic Command Palette Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/command-palette.md
A simple command palette with navigation and action items. Can be opened using the '⌘K' or 'Ctrl+K' shortcut or by clicking a button.
```vue
Open Palette
```
--------------------------------
### Basic Table Row Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/table/row.md
A basic example demonstrating the usage of the table row component. This component is intended for use within a Table.
```vue
Cell 1Cell 2Cell 3
```
--------------------------------
### Login Form Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/form/index.md
Demonstrates a basic login form structure using Flux components.
```vue
Login
```
--------------------------------
### Pane Media - Full Image Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/pane/media.md
Displays a media pane with a full image, utilizing the default configuration.
```vue
```
--------------------------------
### Basic Toggle Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/form/toggle.md
Demonstrates a simple toggle component without any special configurations.
```vue
```
--------------------------------
### Install Flux with Vite Preset (NPM)
Source: https://github.com/basmilius/flux/blob/main/docs/guide/introduction/installation/nuxt.md
Install Flux UI components, sass-embedded, and the Vite preset using NPM for advanced configuration.
```shell
npm install @flux-ui/components sass-embedded @basmilius/vite-preset
```
--------------------------------
### Basic Grid Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/layout/grid/index.md
Demonstrates a basic usage of the Grid component. This is a simple layout without any responsive adjustments.
```vue
1
2
3
4
```
--------------------------------
### Install Flux with Vite Preset (PNPM)
Source: https://github.com/basmilius/flux/blob/main/docs/guide/introduction/installation/nuxt.md
Install Flux UI components, sass-embedded, and the Vite preset using PNPM for advanced configuration.
```shell
pnpm install @flux-ui/components sass-embedded @basmilius/vite-preset
```
--------------------------------
### Basic Toolbar Group Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/toolbar/group.md
Demonstrates a basic toolbar group with default styling and content.
```vue
```
--------------------------------
### Incoming Comment Example
Source: https://github.com/basmilius/flux/blob/main/docs/components/comment.md
Demonstrates how to render an incoming comment within a message thread. This example utilizes the component's default slot for content.
```vue
Hey there!
```
--------------------------------
### Install Vite-preset Packages (Bun)
Source: https://github.com/basmilius/flux/blob/main/docs/dashboard/introduction/installation.md
Use this command to add Flux Dashboard, its components, sass-embedded, and the Vite preset using Bun.
```shell
bun add @flux-ui/dashboard @flux-ui/components sass-embedded @basmilius/vite-preset
```
--------------------------------
### Install Flux Application with Bun
Source: https://github.com/basmilius/flux/blob/main/docs/application/introduction/installation.md
Use this command to add Flux Application and components to your project using Bun.
```shell
bun add @flux-ui/application @flux-ui/components
```