### Install and Use React Select Source: https://preview.sprukomarket.com/html/bootstrap/vyzor/documentation/html/react This snippet guides through the installation of React Select and shows how to implement a customizable dropdown component. It includes example data for the options and component configuration. ```bash npm i react-select ``` ```jsx const SpkSelect = dynamic(() => import("@/shared/@spk-reusable-components/reusable-plugins/spk-reactselect"), { ssr: false }); ``` ```typescript interface Selectoption { value: string; label: string; } export const Selectoption1: Selectoption[] = [ { value: "Selection-1", label: "Selection-1" }, { value: "Selection-2", label: "Selection-2" }, { value: "Selection-3", label: "Selection-3" }, { value: "Selection-4", label: "Selection-4" }, { value: "Selection-5", label: "Selection-5" } ]; ``` -------------------------------- ### Install and Use React Select Source: https://preview.sprukomarket.com/html/bootstrap/vyzor/documentation/html/react-laravel Provides instructions for installing and using React Select, a flexible dropdown component. It includes an example of dynamic import and how to configure options and styling. ```bash npm i react-select ``` ```javascript const SpkSelect = dynamic(() => import("@/shared/@spk-reusable-components/reusable-plugins/spk-reactselect"), { ssr: false }); ``` ```javascript export const Selectoption1 = [ { value: "Selection-1", label: "Selection-1" }, { value: "Selection-2", label: "Selection-2" }, { value: "Selection-3", label: "Selection-3" }, { value: "Selection-4", label: "Selection-4" }, { value: "Selection-5", label: "Selection-5" } ]; ``` -------------------------------- ### React-Leaflet Maps Installation and Usage Source: https://preview.sprukomarket.com/html/bootstrap/vyzor/documentation/html/react-laravel_introduction Provides instructions for installing react-leaflet and leaflet, along with a React code example for integrating a map. It requires dynamic import for the SpkLeaflet component and CSS import for Leaflet's styling. The example shows how to set the map's position, zoom level, and other properties. ```bash npm i react-leaflet leaflet ``` ```React const SpkLeaflet = dynamic(() => import('@/shared/@spk-reusable-components/reusable-plugins/spk-leaflet'), { ssr: false }); // const position = [51.505, -0.09]; ``` ```css @import "leaflet/dist/leaflet.css"; ``` -------------------------------- ### Install and Use React Select Source: https://preview.sprukomarket.com/html/bootstrap/vyzor/documentation/html/react-laravel_introduction Installs the React Select library and shows how to implement a customizable dropdown/select input. It includes dynamic import for server-side rendering and an example of defining select options. ```bash npm i react-select ``` ```jsx const SpkSelect = dynamic(() => import("@/shared/@spk-reusable-components/reusable-plugins/spk-reactselect"), { ssr: false }); ``` ```jsx export const Selectoption1 = [ { value: "Selection-1", label: "Selection-1" }, { value: "Selection-2", label: "Selection-2" }, { value: "Selection-3", label: "Selection-3" }, { value: "Selection-4", label: "Selection-4" }, { value: "Selection-5", label: "Selection-5" } ]; ``` -------------------------------- ### Install and Use React SunEditor Source: https://preview.sprukomarket.com/html/bootstrap/vyzor/documentation/html/react-laravel_introduction Installs the React SunEditor library and provides a basic example of its usage within a React component. It also shows how to import the necessary CSS for the editor. ```bash npm i suneditor-react ``` ```jsx import SpkSunEditor from "@/shared/@spk-reusable-components/reusable-plugins/spk-suneditor"; ``` ```css @import 'suneditor/dist/css/suneditor.min.css'; ``` ```jsx const defaultContent = `

Quill Snow is a free, open source Quill Editor built for the modern web. With its modular architecture and expressive API, it is completely customizable to fit any need.


  1. Write text, select, and edit with multiple options.
  2. This is quill snow editor.
  3. Easy to customize and flexible.


Quill officially supports a standard toolbar theme "Snow" and a floating tooltip theme "Bubble"

`; ``` -------------------------------- ### Install and Use React Grid.js Source: https://preview.sprukomarket.com/html/bootstrap/vyzor/documentation/html/react-laravel Installs the React Grid.js library and provides an example of how to use it to display data in a table. It supports sorting, filtering, and pagination. Data can be provided as a static array or a Promise. ```bash npm i gridjs-react gridjs ``` ```react import SpkGridjstables from "@/shared/@spk-reusable-components/reusable-plugins/spk-gridjstables"; ``` ```javascript export const Data = [ ["24-10-2022 12:47", "john", "john123@gmail.com", "#12012", "$1799", "1", "$1799"], ["12-09-2022 04:24", "mark", "markzenner23@gmail.com", "#12013", "$2479", "2", "$4958"], ["18-11-2022 18:43", "eoin", "eoin1992@gmail.com", "#12014", "$769", "1", "$769"], ["10-09-2022 10:35", "sarahcdd", "sarahcdd129@gmail.com", "#12015", "$1299", "3", "$3997"], ["27-10-2022 09:55", "afshin", "afshin@example.com", "#12016", "$1449", "1", "$1449"] ]; export const Data1 = (): Promise => { return new Promise(resolve => { setTimeout(() => resolve([ ["24-10-2022 12:47", "john", "john123@gmail.com", "#12012", "$1799", "1", "$1799"], ["12-09-2022 04:24", "mark", "markzenner23@gmail.com", "#12013", "$2479", "2", "$4958"], ["18-11-2022 18:43", "eoin", "eoin1992@gmail.com", "#12014", "$769", "1", "$769"], ["10-09-2022 10:35", "sarahcdd", "sarahcdd129@gmail.com", "#12015", "$1299", "3", "$3997"], ["27-10-2022 09:55", "afshin", "afshin@example.com", "#12016", "$1449", "1", "$1449"] ]), 2000); }); }; ``` ```css @import "gridjs/dist/theme/mermaid.css"; ``` -------------------------------- ### Install Project Dependencies with NPM Source: https://preview.sprukomarket.com/html/bootstrap/vyzor/documentation/html/svelte-laravel These commands are used to install project dependencies. 'npm install' downloads packages listed in package.json. 'npm run build' compiles assets for production. 'npm run dev' starts a development server with hot-reloading. ```shell npm install ``` ```shell npm run build ``` ```shell npm run dev ``` -------------------------------- ### Install Dependencies for Starter-kit Source: https://preview.sprukomarket.com/html/bootstrap/vyzor/documentation/html/angular Installs project dependencies for the Starter-kit using npm or yarn. This command ensures all necessary libraries and packages are downloaded for the project. ```bash npm install (or) yarn install ``` -------------------------------- ### Install Project Dependencies Source: https://preview.sprukomarket.com/html/bootstrap/vyzor/documentation/html/blazor Installs all the necessary project dependencies listed in the `package.json` file. This command should be run after cloning the repository or when setting up the project for the first time. ```bash npm install ``` -------------------------------- ### Initialize FlatPickr for Date Selection Source: https://preview.sprukomarket.com/html/bootstrap/vyzor/documentation/html/index This code provides an example of using FlatPickr, a JavaScript library for date and time pickers. It includes the HTML input field, the FlatPickr CSS, and the JavaScript initialization. The example shows a basic setup for selecting a date. ```html
``` ```css ``` ```javascript ``` -------------------------------- ### Check Pip Installation (Command Line) Source: https://preview.sprukomarket.com/html/bootstrap/vyzor/documentation/html/django This command checks if the Pip package installer is installed and displays its version. Pip is automatically installed with Python and is used to manage project dependencies. ```bash pip --version ``` -------------------------------- ### React File Structure Example Source: https://preview.sprukomarket.com/html/bootstrap/vyzor/documentation/html/react-laravel_introduction Demonstrates a basic React file structure for a page component within the Vyzor template. It utilizes Bootstrap components for layout and includes SEO and page header components. The `Empty.layout` property assigns a main layout to the page. ```jsx import React, { Fragment } from "react"; import { Card, Col, Row } from "react-bootstrap"; import Seo from "../../../shared/layouts-components/seo/seo"; import Pageheader from "../../../shared/layouts-components/pageheader/pageheader"; import MainLayout from "@/Layouts/layout"; const Empty = () => { return (
Empty Card
) }; // Assign layout Empty.layout = (page) => {page}; export default Empty; ``` -------------------------------- ### Generate Nuxt Pages Source: https://preview.sprukomarket.com/html/bootstrap/vyzor/documentation/html/nuxt This snippet demonstrates how to generate new pages within a Nuxt application using the `nuxt generate` command. It shows examples for creating a static page and a dynamic route page. Ensure you have Nuxt CLI installed and are in your project's root directory. ```bash npx nuxi add page about npx nuxi add page "category/[id]" ``` -------------------------------- ### Install Node.js Project Dependencies Source: https://preview.sprukomarket.com/html/bootstrap/vyzor/documentation/html/flask This command installs the necessary Node.js packages and their dependencies as defined in the 'package.json' file. This is typically used for front-end development tools, build processes, or JavaScript-based libraries required by the project. ```bash npm install ``` -------------------------------- ### Build Production File with esbuild Source: https://preview.sprukomarket.com/html/bootstrap/vyzor/documentation/html/index This command initiates the development build process using esbuild. It generates the `dist/` directory, starts a local development server, and watches for file changes in the `src/` folder to automatically update the output. ```bash npm run dev ``` -------------------------------- ### Install and Use React DatePicker Source: https://preview.sprukomarket.com/html/bootstrap/vyzor/documentation/html/react-laravel_introduction Installs the React Datepicker library and demonstrates its integration into a React form. It includes state management for selected dates and the necessary CSS import. ```bash npm i react-datepicker ``` ```jsx import SpkDatepickr from "@/shared/@spk-reusable-components/reusable-plugins/spk-datepicker" const [dates, setDates] = useState({}); const handleDateChange = (key, date) => { if (date) { setDates((prevDates) => ({ ...prevDates, [key]: date, })); } else { setDates((prevDates) => { const { [key]: removedKey, ...rest } = prevDates; return rest; }); } }; handleDateChange("basicDate", date)}/> ``` ```css @import 'react-datepicker/dist/react-datepicker.css'; ``` -------------------------------- ### Run Flask Development Server Source: https://preview.sprukomarket.com/html/bootstrap/vyzor/documentation/html/flask This command starts the Flask development server, typically running the main application file (e.g., 'app.py'). The server will then be accessible via a local URL, usually `http://127.0.0.1:5000`, allowing developers to test and debug their web application. ```bash python app.py ``` -------------------------------- ### Install and Use React Grid.js Table Source: https://preview.sprukomarket.com/html/bootstrap/vyzor/documentation/html/react-laravel_introduction Installs the React Grid.js library and demonstrates its basic usage by rendering a table with provided data and column headers. It supports inline editing, sorting, and filtering. ```bash npm i gridjs-react gridjs ``` ```react import SpkGridjstables from "@/shared/@spk-reusable-components/reusable-plugins/spk-gridjstables"; ``` ```javascript export const Data = [ ["24-10-2022 12:47", "john", "john123@gmail.com", "#12012", "$1799", "1", "$1799"], ["12-09-2022 04:24", "mark", "markzenner23@gmail.com", "#12013", "$2479", "2", "$4958"], ["18-11-2022 18:43", "eoin", "eoin1992@gmail.com", "#12014", "$769", "1", "$769"], ["10-09-2022 10:35", "sarahcdd", "sarahcdd129@gmail.com", "#12015", "$1299", "3", "$3997"], ["27-10-2022 09:55", "afshin", "afshin@example.com", "#12016", "$1449", "1", "$1449"] ]; export const Data1 = (): Promise => { return new Promise(resolve => { setTimeout(() => resolve([ ["24-10-2022 12:47", "john", "john123@gmail.com", "#12012", "$1799", "1", "$1799"], ["12-09-2022 04:24", "mark", "markzenner23@gmail.com", "#12013", "$2479", "2", "$4958"], ["18-11-2022 18:43", "eoin", "eoin1992@gmail.com", "#12014", "$769", "1", "$769"], ["10-09-2022 10:35", "sarahcdd", "sarahcdd129@gmail.com", "#12015", "$1299", "3", "$3997"], ["27-10-2022 09:55", "afshin", "afshin@example.com", "#12016", "$1449", "1", "$1449"] ]), 2000); }); }; ``` ```css @import "gridjs/dist/theme/mermaid.css"; ``` -------------------------------- ### Initialize Inertia App with Svelte Source: https://preview.sprukomarket.com/html/bootstrap/vyzor/documentation/html/svelte-laravel Boots the Inertia application on the client-side using Svelte. It defines how Svelte components are resolved from the './Pages' directory and how the main application component is mounted to the DOM element. ```javascript // app.js import './bootstrap'; import { createInertiaApp } from '@inertiajs/svelte' import { mount } from 'svelte' import '../css/app.scss' import '../css/scss/switcher.scss' createInertiaApp({ resolve: name => { const pages = import.meta.glob('./Pages/**/*.svelte', { eager: true }) return pages[`./Pages/${name}.svelte`] }, setup({ el, App, props }) { mount(App, { target: el, props }) }, }) // 🔥 Global click handler to prevent scroll for dummy anchors document.addEventListener('click', (e) => { const target = e.target.closest('a'); if (!target) return; const href = target.getAttribute('href'); if (href === '#' || href === '#!') { e.preventDefault(); } }); ``` -------------------------------- ### Install Ng Select Component Source: https://preview.sprukomarket.com/html/bootstrap/vyzor/documentation/html/angular Installs the Ng Select component using npm. This package provides a flexible and customizable dropdown/select input for Angular applications. Ensure you have Node.js and npm installed. ```bash npm i @ng-select/ng-select ``` -------------------------------- ### Install Angularx Flatpickr (NPM) Source: https://preview.sprukomarket.com/html/bootstrap/vyzor/documentation/html/angular Installs the angularx-flatpickr package, which is an Angular wrapper for the Flatpickr date picker library. Note: The provided command installs 'react-datepicker' which is incorrect for Angular. The correct command should be 'npm i angularx-flatpickr'. ```bash npm i react-datepicker ``` -------------------------------- ### Install Angular Material Source: https://preview.sprukomarket.com/html/bootstrap/vyzor/documentation/html/angular Installs the core Angular Material library using npm. This package provides a set of high-quality UI components for Angular applications, including data tables. Ensure Node.js and npm are installed. ```bash npm i @angular/material ``` -------------------------------- ### Install Dependencies with npm Force Source: https://preview.sprukomarket.com/html/bootstrap/vyzor/documentation/html/astro Forces npm to install dependencies, useful when encountering installation errors. Use with caution as it may lead to conflicts. ```bash npm install --force ```