### Run Vlossom Development Server Source: https://github.com/pubg/vlossom/blob/main/README.md This command navigates to the vlossom package directory and starts the development server, allowing for local experimentation with components. This requires Node.js and npm. ```bash cd packages/vlossom npm run dev ``` -------------------------------- ### Setup Project Dependencies and Run Storybook Source: https://github.com/pubg/vlossom/blob/main/CONTRIBUTING.md Clones the vlossom repository, installs npm dependencies, and starts the Storybook development server for the vlossom package. This is a prerequisite for UI component development. ```sh git clone https://github.com./vlossom.git cd vlossom npm install cd packages/vlossom npm run storybook ``` -------------------------------- ### Install Vlossom via npm Source: https://github.com/pubg/vlossom/blob/main/README.md This command installs the Vlossom UI library into your project using npm. Ensure you have Node.js and npm installed on your system. ```bash npm i vlossom ``` -------------------------------- ### VsTooltip Component Examples (Vue) Source: https://context7.com/pubg/vlossom/llms.txt Illustrates the functionality of the VsTooltip component for displaying contextual information. It covers various configurations including placement, click triggers, custom delays, and hoverable content. ```vue ``` -------------------------------- ### Execute Tests and Storybook for Development Source: https://github.com/pubg/vlossom/blob/main/CONTRIBUTING.md Commands to run all project tests and start the Storybook server. These are crucial for ensuring code quality and developing UI components, respectively. ```sh npm run test npm run storybook ``` -------------------------------- ### VsButton Component Examples Source: https://context7.com/pubg/vlossom/llms.txt Demonstrates the usage of the VsButton component in Vue 3, showcasing various styles like primary, outline, dense, large, loading states, and custom styling. ```vue ``` -------------------------------- ### VsInput Component Examples Source: https://context7.com/pubg/vlossom/llms.txt Illustrates the Vlossom VsInput component for text inputs in Vue 3. Covers features like labels, validation, input types, clear functionality, and states. ```vue ``` -------------------------------- ### VsDrawer Component Examples (Vue) Source: https://context7.com/pubg/vlossom/llms.txt Demonstrates the usage of the VsDrawer component for creating slide-out panels. It showcases different placements (left, right, bottom), sizing, and interactive features like closing on click or escape key. ```vue ``` -------------------------------- ### VsCheckbox Component Examples in Vue.js Source: https://context7.com/pubg/vlossom/llms.txt Demonstrates various ways to use the VsCheckbox component, including single values, arrays for multiple selections, indeterminate states, custom true/false values, and beforeChange callbacks. It requires Vue.js and the VsCheckbox component. ```vue ``` -------------------------------- ### VsModal Component Examples in Vue.js Source: https://context7.com/pubg/vlossom/llms.txt Illustrates the usage of the VsModal component for creating dialogs with programmatic control, customizable sizes, and various options like focus trapping and scroll locking. It requires Vue.js and the VsModal component. ```vue ``` -------------------------------- ### Use Vlossom Theme Toggle and Style Sets in Vue Components (Vue SFC) Source: https://context7.com/pubg/vlossom/llms.txt This example demonstrates how to use Vlossom components for theme toggling and applying custom style sets within a Vue 3 Single File Component. It utilizes the useVlossom composable to access theme control functions and reactive properties. Dependencies include Vue 3 and Vlossom. ```vue ``` -------------------------------- ### VsSelect: Basic and Advanced Dropdown Select Component (Vue.js) Source: https://context7.com/pubg/vlossom/llms.txt The VsSelect component enables single or multiple selections from a list of options. It supports features like autocomplete filtering, custom option rendering, lazy loading, and selection limits. This example showcases various configurations including basic selection, multiple selections with chips, autocomplete search, object options with custom labels/values, select all functionality, and min/max selection constraints. ```vue ``` -------------------------------- ### VsForm: Form Wrapper Component for Validation and State Management (Vue.js) Source: https://context7.com/pubg/vlossom/llms.txt The VsForm component acts as a wrapper for form elements, providing built-in validation management, change detection, and the ability to set form-level disabled or readonly states. It emits events for validation errors and allows for programmatic control of form state. This example demonstrates setting up required fields, custom validation rules, and handling form submission and reset. ```vue ``` -------------------------------- ### Run Vlossom Storybook Source: https://github.com/pubg/vlossom/blob/main/README.md This command navigates to the vlossom package directory and launches Storybook, which showcases the library's components and their usage. This requires Node.js and npm. ```bash cd packages/vlossom npm run storybook ``` -------------------------------- ### Run Development and Testing Commands Source: https://github.com/pubg/vlossom/blob/main/CONTRIBUTING.md Provides commands for running Storybook, tests, and the development playground within the 'packages/vlossom' directory. Also includes the command to run the dev server for the 'packages/docs' directory. ```sh # in packages/vlossom npm run storybook npm run test npm run dev # in packages/docs npm run dev ``` -------------------------------- ### Configure Vlossom Global Theming and Styles (TypeScript) Source: https://context7.com/pubg/vlossom/llms.txt This snippet shows the global configuration of Vlossom in a Vue 3 application using TypeScript. It covers theme settings, radius ratio, global color schemes for components, and custom style sets for components like buttons and inputs. It requires the 'vlossom' and 'vue' packages. ```typescript import { createApp } from 'vue'; import { createVlossom } from 'vlossom'; import 'vlossom/styles'; import App from './App.vue'; const app = createApp(App); const vlossom = createVlossom({ // Theme settings theme: 'light', detectOSTheme: true, // Auto-detect OS theme preference darkThemeClass: 'dark-mode', // Custom class for dark mode // Global radius ratio for all components radiusRatio: 1, // Global color schemes per component colorScheme: { VsButton: 'blue', VsInput: 'green', VsSelect: 'purple' }, // Custom style sets styleSet: { VsButton: { primary: { backgroundColor: '#1976d2', color: '#ffffff', borderRadius: '8px', fontWeight: '600' }, danger: { backgroundColor: '#d32f2f', color: '#ffffff' } }, VsInput: { outlined: { border: '2px solid #ccc', borderRadius: '4px' } } } }); app.use(vlossom); app.mount('#app'); ``` -------------------------------- ### Implement Pagination with VsPagination Component Source: https://context7.com/pubg/vlossom/llms.txt The VsPagination component facilitates navigation through paginated content. It supports binding the current page, setting the total number of pages, and offers features like edge buttons, custom display lengths, disabled states, and slot customization for previous, next, and page number elements. ```vue ``` -------------------------------- ### VsTabs Component for Navigation (Vue) Source: https://context7.com/pubg/vlossom/llms.txt The VsTabs component offers a flexible tab navigation system with features like keyboard support, scrollable tabs, disabled tab states, and custom tab templates. It is implemented in Vue.js. ```Vue ``` -------------------------------- ### Configure Vlossom in Vue Application Source: https://context7.com/pubg/vlossom/llms.txt Configures the Vlossom plugin in your Vue 3 application's main entry point. It allows setting initial themes, color schemes, and custom style sets. ```typescript // main.ts import { createApp } from 'vue'; import { createVlossom } from 'vlossom'; import 'vlossom/styles'; import App from './App.vue'; const app = createApp(App); const vlossom = createVlossom({ theme: 'light', detectOSTheme: true, radiusRatio: 1, colorScheme: { VsButton: 'blue', VsInput: 'green' }, styleSet: { VsButton: { myCustomButton: { backgroundColor: '#ff5722', fontWeight: 'bold' } } } }); app.use(vlossom); app.mount('#app'); ``` -------------------------------- ### Manage Modals with Vlossom Modal Plugin Source: https://context7.com/pubg/vlossom/llms.txt The Vlossom Modal plugin enables programmatic opening and closing of modal windows. It allows for rendering custom Vue components within modals, setting modal size, and configuring behaviors like closing on dim or escape key press. Callbacks for open and close events are supported. ```vue ``` -------------------------------- ### Implement Confirmation Dialogs with Vlossom Confirm Plugin Source: https://context7.com/pubg/vlossom/llms.txt The Vlossom Confirm plugin provides a programmatic way to open confirmation dialogs for user interactions like deletions or prompts. It supports custom button texts, color schemes, and returns a boolean indicating user confirmation. The prompt variant allows for direct input. ```vue ``` -------------------------------- ### VsTable Component with Sorting, Searching, and Pagination (Vue) Source: https://context7.com/pubg/vlossom/llms.txt The VsTable component provides a comprehensive data table solution with built-in features like sorting, searching, pagination, row selection, expandable rows, and drag-and-drop support. It uses Vue.js and requires the 'vlossom' library for table headers. ```Vue ``` -------------------------------- ### Display Toast Notifications with Vlossom Toast Plugin Source: https://context7.com/pubg/vlossom/llms.txt The Vlossom Toast plugin allows for programmatic display of various types of notifications (success, error, warning, info, custom). It supports options like auto-close, timeout duration, and color schemes. It can also directly display Error objects, extracting the message automatically. ```vue ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.