### UIThing LLMs Getting Started Documentation Source: https://uithing.com/components/flip-clock This section outlines the 'Getting Started' guide for the UIThing LLMs project. It includes introductory information, setup instructions, CLI usage, starter templates, shortcuts, and details on the MCP Server and changelog. ```json {"content": 5}, [6, 43, 76, 724, 795, 931, 990, 1119], {"title": 7, "icon": 8, "label": 9, "links": 9, "layout": 9, "path": 10, "stem": 11, "children": 12, "page": 42}, "Getting Started", "lucide:target", null, "/getting-started", "1.getting-started", [13, 17, 21, 25, 29, 33, 38], {"title": 14, "path": 15, "stem": 16, "icon": 9, "label": 9, "links": 9, "layout": 9}, "Introduction", "/getting-started/introduction", "1.getting-started/1.introduction", {"title": 18, "path": 19, "stem": 20, "icon": 9, "label": 9, "links": 9, "layout": 9}, "Setup", "/getting-started/setup", "1.getting-started/2.setup", {"title": 22, "path": 23, "stem": 24, "icon": 9, "label": 9, "links": 9, "layout": 9}, "CLI", "/getting-started/cli", "1.getting-started/3.cli", {"title": 26, "path": 27, "stem": 28, "icon": 9, "label": 9, "links": 9, "layout": 9}, "Starters", "/getting-started/starter", "1.getting-started/4.starter", {"title": 30, "path": 31, "stem": 32, "icon": 9, "label": 9, "links": 9, "layout": 9}, "Shortcuts", "/getting-started/shortcuts", "1.getting-started/5.shortcuts", {"title": 34, "path": 35, "stem": 36, "icon": 9, "label": 37, "links": 9, "layout": 9}, "MCP Server", "/getting-started/mcp", "1.getting-started/6.mcp", "New", {"title": 39, "path": 40, "stem": 41, "icon": 9, "label": 9, "links": 9, "layout": 9}, "Changelog", "/getting-started/changelog", "1.getting-started/changelog", false ``` -------------------------------- ### Installation and Project Setup Source: https://uithing.com/prose/tabs Steps to initialize a new Express.js project, install necessary dependencies, and set up the basic project structure. ```APIDOC ## Installation and Project Setup ### Description This section details the process of setting up a new Express.js project, including initializing npm, installing core and development dependencies, and creating the initial directory structure. ### Method N/A (Setup Guide) ### Endpoint N/A ### Parameters N/A ### Request Example ```bash mkdir my-express-api && cd my-express-api npm init -y # Install core dependencies npm install express cors helmet morgan # Install development dependencies npm install -D nodemon @types/node typescript ts-node mkdir src routes middleware controllers touch src/app.ts src/server.ts ``` ### Response N/A ### Response Example N/A ``` -------------------------------- ### Dialog Component - Onboarding Example Source: https://uithing.com/components/dialog Shows a dialog implementation for an onboarding process. This can be used to guide new users through initial setup or feature introductions. ```html
Onboarding
``` -------------------------------- ### Example Pages and Components Source: https://uithing.com/components/pagination This section lists various example pages and UI components available within the project. These include 'Getting Started' guides, 'Examples' showcasing different UI patterns like Cards, Dashboard, and Landing Page, and specific UI elements. ```markdown ## Getting Started - Introduction - Setup - CLI - Starters - Shortcuts - MCP Server - Changelog ## Examples - Cards - Dashboard - Landing Page - Schema Visualizer ## UI Components - Pagination - OgImageUIThing - Displays data in paged format and provides navigation between pages. - Dark color scheme, 800px height, 1440px width, 2000ms delay. ``` -------------------------------- ### Example: Sortable.js Store 'get' Method with localStorage Source: https://uithing.com/api/components Provides an example implementation of the 'get' method for the SortableStore, demonstrating how to retrieve and parse element order from localStorage. ```javascript get: function(sortable) { var order = localStorage.getItem(sortable.options.group.name); return order ? order.split('|') : []; } ``` -------------------------------- ### Install UI Thing CLI using bun Source: https://uithing.com/components/button This command installs the UI Thing CLI using bun's `x` command, which executes packages. This is an alternative to global installation and is efficient for running CLI tools. Ensure you have bun installed. ```bash bun x ui-thing@latest add button\n ``` -------------------------------- ### Set up Express Server and Listen on Port Source: https://uithing.com/prose/code-group This snippet initializes an Express application and starts the server to listen on a specified port. It's a basic setup for a web server. ```typescript import express from 'express'; const app = express(); const PORT = process.env.PORT || 3000; app.get('/', (req, res) => { res.json({ message: 'Hello World' }) }) app.listen(PORT) ``` -------------------------------- ### Display Numbered Steps Source: https://uithing.com/prose/tabs Renders sequential, auto-incrementing steps. Ideal for tutorials, installation guides, and multi-step processes. No specific dependencies are mentioned, and it outputs a visually structured list. ```html
Step 1: Do this
Step 2: Do that
Step 3: Finish up
``` -------------------------------- ### Install VeeInput Component using npm Source: https://uithing.com/forms/veeinput This snippet shows how to install the VeeInput component using the UI-Thing CLI. It's a straightforward command-line installation process. ```bash npx ui-thing@latest add vee-input\n ``` -------------------------------- ### Install UI Thing CLI using pnpm Source: https://uithing.com/components/button This command installs the UI Thing CLI using pnpm's `dlx` command, which executes packages without global installation. This is useful for trying out commands or running them once. Ensure you have pnpm installed. ```bash pnpm dlx ui-thing@latest add button\n ``` -------------------------------- ### Pagination Component Usage Examples (HTML) Source: https://uithing.com/components/pagination Various examples demonstrating different ways to implement the Pagination component. These include a full example with numbered pages and navigation, simple previous/next controls, centered page information, and a Bootstrap-styled pagination. ```html ``` -------------------------------- ### Example Page Navigation Structure Source: https://uithing.com/forms/veecheckbox This snippet outlines the navigation structure for example pages within the project. It includes titles, paths, and hierarchical organization for different example categories like 'Cards', 'Dashboard', and 'Landing Page'. ```json [{"title":"Getting Started","lucide:target",null,"/getting-started","1.getting-started",[13,17,21,25,29,33,38]},{"title":"Introduction","/getting-started/introduction","1.getting-started/1.introduction"},{"title":"Setup","/getting-started/setup","1.getting-started/2.setup"},{"title":"CLI","/getting-started/cli","1.getting-started/3.cli"},{"title":"Starters","/getting-started/starter","1.getting-started/4.starter"},{"title":"Shortcuts","/getting-started/shortcuts","1.getting-started/5.shortcuts"},{"title":"MCP Server","/getting-started/mcp","1.getting-started/6.mcp","New"},{"title":"Changelog","/getting-started/changelog","1.getting-started/changelog",false},{"title":"Examples","lucide:layout-template","/examples","2.examples",[49,54,58,62,66,70,73]},{"title":"Cards","/examples/cards","2.examples/cards","examples"},{"title":"Dashboard","/examples/dashboard","2.examples/dashboard"},{"title":"Landing Page","/examples/landing","2.examples/landing"},{"title":"Schema Visualizer","/examples/schema-visualizer","2.examples/schema-visualizer"},{"title":"Settings Dashboard","https://settings-dash.behonbaker.com/","_blank"},{"title":"T-Tag UI","https://etag-ui.behonbaker.com/"}] ``` -------------------------------- ### Install QRCode Component with npm Source: https://uithing.com/components/qrcode Installs the QRCode component using npm. This command assumes you have Node.js and npm installed on your system. It fetches the latest version of the ui-thing package. ```bash npm install ui-thing@latest ``` -------------------------------- ### Install UIThing with Package Managers Source: https://uithing.com/prose/code-group Instructions for installing the UIThing library using various package managers like npm, pnpm, yarn, and bun. Ensure you have the respective package manager installed. ```bash npm install ui-thing@latest ``` ```bash pnpm add ui-thing@latest ``` ```bash yarn add ui-thing@latest ``` ```bash bun add ui-thing@latest ``` -------------------------------- ### Main Application Setup (src/app.ts) Source: https://uithing.com/prose/tabs Sets up the core Express application, including middleware for security, CORS, logging, and request body parsing. ```APIDOC ## Main Application Setup ### Description This file configures the main Express application instance. It sets up essential middleware such as Helmet for security headers, CORS for cross-origin requests, Morgan for HTTP request logging, and JSON/URL-encoded body parsing. ### Method N/A (Setup) ### Endpoint N/A ### Parameters N/A ### Request Example ```ts import cors from "cors"; import express from "express"; import helmet from "helmet"; import morgan from "morgan"; const app = express(); // Middleware app.use(helmet()); app.use(cors()); app.use(morgan("combined")); app.use(express.json({ limit: "10mb" })); app.use(express.urlencoded({ extended: true })); // Health check app.get("/health", (req, res) => { res.status(200).json({ status: "OK", timestamp: new Date().toISOString(), }); }); export default app; ``` ### Response N/A ### Response Example N/A ``` -------------------------------- ### Nuxt Routing Configuration Source: https://uithing.com/components/dialog This snippet defines the routing structure for the Nuxt.js application. It maps paths to page components and includes nested routes for examples and getting started sections. ```javascript [ { "component": 1, "props": 2, "screenshot": 5 }, "OgImageUIThing", { "title": 3, "description": 4 }, "Dialog", "A window overlaid on either the primary window or another dialog window, rendering the content underneath inert.", { "colorScheme": 6, "height": 7, "width": 8, "delay": 9 }, "dark", 800, 1440, 2000 ] [ ["ShallowReactive", 1], { "data": 2, "state": 42831, "once": 42847, "_errors": 42848, "serverRendered": 1347, "path": 286 }, ["ShallowReactive", 3], { "components-dialog-navigation": 4, "components-dialog-page": 1182, "i-heroicons:bars-2": 22736, "i-heroicons:chevron-down": 22739, "i-lucide:search": 22741, "i-lucide:palette": 22743, "i-radix-icons:github-logo": 22745, "i-lucide:sun": 22747, "i-lucide:target": 22749, "i-lucide:layout-template": 22751, "i-lucide:component": 22753, "i-solar:confetti-broken": 22755, "i-mdi:vuejs": 22757, "i-lucide:chart-no-axes-combined": 22759, "i-svg-spinners:blocks-shuffle-3": 22761, "i-lucide:box": 22763, "i-lucide:chevron-down": 22765, "i-lucide:chevron-right": 22767, "i-lucide:copy": 22769, "i-simple-icons:radixui": 22771, "i-icon-park-solid:api": 22773, "i-lucide:link": 22775, "i-lucide:arrow-left": 22777, "i-lucide:arrow-right": 22779, "i-lucide:pen": 22781, "i-lucide:star": 22783, "i-lucide:bug": 22785, "i-lucide:lightbulb": 22787, "i-lucide:coffee": 22789, "/components/dialog": 22791, "mdc-7z6h0z-key": 42680 }, { "content": 5 }, [ 6, 43, 76, 724, 795, 931, 990, 1119 ], { "title": 7, "icon": 8, "label": 9, "links": 9, "layout": 9, "path": 10, "stem": 11, "children": 12, "page": 42 }, "Getting Started", "lucide:target", null, "/getting-started", "1.getting-started", [ 13, 17, 21, 25, 29, 33, 38 ], { "title": 14, "path": 15, "stem": 16, "icon": 9, "label": 9, "links": 9, "layout": 9 }, "Introduction", "/getting-started/introduction", "1.getting-started/1.introduction", { "title": 18, "path": 19, "stem": 20, "icon": 9, "label": 9, "links": 9, "layout": 9 }, "Setup", "/getting-started/setup", "1.getting-started/2.setup", { "title": 22, "path": 23, "stem": 24, "icon": 9, "label": 9, "links": 9, "layout": 9 }, "CLI", "/getting-started/cli", "1.getting-started/3.cli", { "title": 26, "path": 27, "stem": 28, "icon": 9, "label": 9, "links": 9, "layout": 9 }, "Starters", "/getting-started/starter", "1.getting-started/4.starter", { "title": 30, "path": 31, "stem": 32, "icon": 9, "label": 9, "links": 9, "layout": 9 }, "Shortcuts", "/getting-started/shortcuts", "1.getting-started/5.shortcuts", { "title": 34, "path": 35, "stem": 36, "icon": 9, "label": 37, "links": 9, "layout": 9 }, "MCP Server", "/getting-started/mcp", "1.getting-started/6.mcp", "New", { "title": 39, "path": 40, "stem": 41, "icon": 9, "label": 9, "links": 9, "layout": 9 }, "Changelog", "/getting-started/changelog", "1.getting-started/changelog", false, { "title": 44, "icon": 45, "label": 9, "links": 9, "layout": 9, "path": 46, "stem": 47, "children": 48, "page": 42 }, "Examples", "lucide:layout-template", "/examples", "2.examples", [ 49, 54, 58, 62, 66, 70, 73 ], { "title": 50, "path": 51, "stem": 52, "icon": 9, "label": 9, "links": 9, "layout": 53 }, "Cards", "/examples/cards", "2.examples/cards", "examples", { "title": 55, "path": 56, "stem": 57, "icon": 9, "label": 9, "links": 9, "layout": 53 }, "Dashboard", "/examples/dashboard", "2.examples/dashboard", { "title": 59, "path": 60, "stem": 61, "icon": 9, "label": 9, "links": 9, "layout": 53 }, "Landing Page", "/examples/landing", "2.examples/landing", { "title": 63, "path": 64, "stem": 65, "icon": 9, "label": 9, "links": 9, "layout": 53 }, "Schema Visualizer", "/examples/schema-visualizer", "2.examples/schema-visualizer", { "title": 67, "path": 68, "target": 69 }, "Settings Dashboard", "https://settings-dash.behonbaker.com/", "_blank", { "title": 71, "path": 72, "target": 69 }, "T-Tag UI", "https://etag-ui.behonbaker.com/", { "title": 74, "path": 75, "target": 69 }, "UI Todo", "https://ui-todo.behonbaker.com/" ] ``` -------------------------------- ### Create Server Entry Point (TypeScript) Source: https://uithing.com/prose/tabs This snippet shows how to create the main server file for an Express application. It sets up the port, defines routes for users, includes a 404 handler, and starts the server. Dependencies include Express. ```typescript import app from "./app"; import userRoutes from "./routes/users"; const PORT = process.env.PORT || 3000; // Routes app.use("/api/users", userRoutes); // 404 handler app.use("*", (req, res) => { res.status(404).json({ error: "Route not found" }); }); app.listen(PORT, () => { console.log(`🚀 Server running on port ${PORT}`); }); ``` -------------------------------- ### Example .env file for Application Configuration Source: https://uithing.com/prose/tabs Provides an example .env file for configuring application settings. This includes essential variables such as the server port, database connection URL (MongoDB example), JWT secret for authentication, and CORS origin for cross-origin resource sharing. ```dotenv PORT=3000 DATABASE_URL=mongodb://localhost:27017/myapp JWT_SECRET=mysecretkey CORS_ORIGIN=http://localhost:3000 ``` -------------------------------- ### UIThing Documentation Navigation Structure Source: https://uithing.com/components/command This JSON snippet defines the navigation structure for the project's documentation. It includes sections like 'Getting Started' and 'Examples', with nested pages, their paths, stems, and associated icons and labels. ```json [{"title":7,"icon":8,"label":9,"links":9,"layout":9,"path":10,"stem":11,"children":12,"page":42},"Getting Started","lucide:target",null,"/getting-started","1.getting-started",[13,17,21,25,29,33,38],{"title":14,"path":15,"stem":16,"icon":9,"label":9,"links":9,"layout":9},"Introduction","/getting-started/introduction","1.getting-started/1.introduction",{"title":18,"path":19,"stem":20,"icon":9,"label":9,"links":9,"layout":9},"Setup","/getting-started/setup","1.getting-started/2.setup",{"title":22,"path":23,"stem":24,"icon":9,"label":9,"links":9,"layout":9},"CLI","/getting-started/cli","1.getting-started/3.cli",{"title":26,"path":27,"stem":28,"icon":9,"label":9,"links":9,"layout":9},"Starters","/getting-started/starter","1.getting-started/4.starter",{"title":30,"path":31,"stem":32,"icon":9,"label":9,"links":9,"layout":9},"Shortcuts","/getting-started/shortcuts","1.getting-started/5.shortcuts",{"title":34,"path":35,"stem":36,"icon":9,"label":37,"links":9,"layout":9},"MCP Server","/getting-started/mcp","1.getting-started/6.mcp","New",{"title":39,"path":40,"stem":41,"icon":9,"label":9,"links":9,"layout":9},"Changelog","/getting-started/changelog","1.getting-started/changelog",false,{"title":44,"icon":45,"label":9,"links":9,"layout":9,"path":46,"stem":47,"children":48,"page":42},"Examples","lucide:layout-template","/examples","2.examples",[49,54,58,62,66,70,73],{"title":50,"path":51,"stem":52,"icon":9,"label":9,"links":9,"layout":53},"Cards","/examples/cards","2.examples/cards","examples",{"title":55,"path":56,"stem":57,"icon":9,"label":9,"links":9,"layout":53},"Dashboard","/examples/dashboard","2.examples/dashboard",{"title":59,"path":60,"stem":61,"icon":9,"label":9,"links":9,"layout":53},"Landing Page","/examples/landing","2.examples/landing",{"title":63,"path":64,"stem":65,"icon":9,"label":9,"links":9,"layout":53},"Schema Visualizer","/examples/schema-visualizer","2.examples/schema-visualizer",{"title":67,"path":68,"target":69},"Settings Dashboard","https://settings-dash.behonbaker.com/","_blank",{"title":71,"path":72,"target":69}] ``` -------------------------------- ### Example Regex for Input Validation Source: https://uithing.com/api/components Provides an example of using a regular expression to validate the input field. This regex ensures that the input starts with an uppercase letter. ```javascript regex: /^[A-Z]/ ``` -------------------------------- ### Create Server Entry Point (TypeScript) Source: https://uithing.com/prose/tabs This code snippet demonstrates the creation of a server entry point using Express in TypeScript. It sets up the port, defines routes, handles 404 errors, and starts the server. Dependencies include the 'express' framework. ```typescript import app from "./app"; import userRoutes from "./routes/users"; const PORT = process.env.PORT || 3000; // Routes app.use("/api/users", userRoutes); // 404 handler app.use("*", (req, res) => { res.status(404).json({ error: "Route not found" }); }); app.listen(PORT, () => { console.log(`🚀 Server running on port ${PORT}`); }); ``` -------------------------------- ### Vue Input with Start Add-on Example Source: https://uithing.com/forms/veeinput This snippet demonstrates how to create an input field with a custom start add-on. It utilizes Vue.js for templating and Tailwind CSS for styling. The 'UiVeeInput' component is used, and the start add-on is defined within a 'template #leadingIcon' slot. ```vue ``` -------------------------------- ### Install and Add Component with bun Source: https://uithing.com/components/description-list This snippet illustrates how to use bun to run the 'ui-thing' CLI and add the 'description-list' component. It uses 'bun x' for executing the package. ```bash bun x ui-thing@latest add description-list\n ``` -------------------------------- ### VeeVueFormSlider: Single Slider Example Source: https://uithing.com/forms/vee-vueformslider Demonstrates the basic usage of the VeeVueFormSlider component for selecting a single value. This example assumes the necessary VueForm Slider package is installed and configured. ```Vue ``` -------------------------------- ### Install Vee-Validate Nuxt Module (npm) Source: https://uithing.com/forms This command installs the Vee-Validate Nuxt Module, which is required to integrate Vee-Validate into your Nuxt.js application. This module simplifies the setup process for form validation. ```bash npm i @vee-validate/nuxt ``` -------------------------------- ### Environment Variables Example (.env.example) Source: https://uithing.com/prose/code-group The .env.example file serves as a template for the .env file, listing all required environment variables without their actual values. This helps in setting up the environment for new developers or deployment. ```bash DATABASE_URL= REDIS_URL= JWT_SECRET= API_KEY= ``` -------------------------------- ### Server Entry Point (src/server.ts) Source: https://uithing.com/prose/tabs Defines the server entry point, imports the Express app, sets up routes, and starts the HTTP server. ```APIDOC ## Server Entry Point ### Description This is the main entry point for the server. It imports the configured Express application, defines API routes (e.g., user routes), implements a 404 handler for undefined routes, and starts the server listening on a specified port. ### Method N/A (Setup) ### Endpoint N/A ### Parameters N/A ### Request Example ```ts import app from "./app"; import userRoutes from "./routes/users"; const PORT = process.env.PORT || 3000; // Routes app.use("/api/users", userRoutes); // 404 handler app.use("*", (req, res) => { res.status(404).json({ error: "Route not found" }); }); app.listen(PORT, () => { console.log(`🚀 Server running on port ${PORT}`); }); ``` ### Response N/A ### Response Example N/A ``` -------------------------------- ### Install Valibot for Validation (npm) Source: https://uithing.com/forms This command installs Valibot, a lightweight and performant schema validation library, along with its Vee-Validate integration. This allows you to leverage Valibot schemas for form validation within your Vee-Validate setup. ```bash npm i valibot @vee-validate/valibot ``` -------------------------------- ### Vue Tabs Component Example Source: https://uithing.com/components/tabs Demonstrates the usage of the UiTabs component in Vue.js. It includes installation instructions using npm or yarn and provides a basic example with account and password tabs. The component relies on UiCard for content presentation. ```vue ``` -------------------------------- ### Example Environment Variables (.env.example) Source: https://uithing.com/prose/tabs An example .env file demonstrating common environment variables used in a Node.js application, including PORT, DATABASE_URL, JWT_SECRET, and CORS_ORIGIN. ```bash PORT=3000 DATABASE_URL=mongodb://localhost:27017/myapp JWT_SECRET=mysecretkey CORS_ORIGIN=http://localhost:3000 ``` -------------------------------- ### Install and Add Component with npm Source: https://uithing.com/components/description-list This snippet shows how to use npm to install the 'ui-thing' CLI globally and then add the 'description-list' component. It utilizes 'npx' for executing the command. ```bash npx ui-thing@latest add description-list\n ``` -------------------------------- ### Axios GET Request in TypeScript Source: https://uithing.com/prose/code-group Shows how to perform a GET request using the Axios library in TypeScript. This method simplifies data fetching and directly returns the data property from the response. It requires the 'axios' package to be installed. ```ts import axios from "axios"; async function getUser(id: string) { const { data } = await axios.get(`/api/users/${id}`); return data; } ``` -------------------------------- ### Vue Component Structure and Props for Cards Example Source: https://uithing.com/examples/cards This JSON structure appears to represent a Vue.js component setup, likely for a page displaying cards. It includes component definitions, props, and data related to a 'Cards' example, including navigation and content. ```json [["ShallowReactive",1],{"component":1,"props":2,"screenshot":5},"OgImageUIThing",{"title":3,"description":4},"Cards","A set of different cards showing how you can use form elements in a real world application.",{"colorScheme":6,"height":7,"width":8,"delay":9},"dark",800,1440,2000] ``` ```json [["ShallowReactive",1],{"data":2,"state":1241,"once":1257,"_errors":1258,"serverRendered":54,"path":23},["ShallowReactive",3],{"examples-cards-page":4,"i-heroicons:bars-2":27,"i-heroicons:chevron-down":32,"i-lucide:search":34,"i-lucide:palette":36,"i-radix-icons:github-logo":38,"i-lucide:sun":41,"i-logos:github-icon":43,"i-logos:google-icon":47,"i-mdi:credit-card":50,"i-mdi:paypal":52,"i-mdi:apple":55,"i-lucide:bell":57,"i-lucide:user":59,"i-lucide:eye-off":61,"i-lucide:chevron-down":63,"i-lucide:circle":65,"i-lucide:star":67,"examples-cards-navigation":69},{"content":5},{"id":6,"title":7,"body":8,"description":18,"extension":19,"icon":20,"label":20,"layout":21,"links":20,"meta":22,"navigation":20,"path":23,"seo":24,"stem":25,"__hash__":26},"content/2.examples/cards.md","Cards",{"type":9,"value":10,"toc":14},"minimark",[11],[12,13],"page-ex-cards",{},{"title":15,"searchDepth":16,"depth":16,"links":17},"",4,[[]],"A set of different cards showing how you can use form elements in a real world application.","md",null,"examples",{},"/examples/cards",{"title":7,"description":18},"2.examples/cards","LGeHQd6EejVP4GOMJMqZ07r0TrUW-tA7IjYSBMbrh5U",{"left":28,"top":28,"width":29,"height":29,"rotate":28,"vFlip":30,"hFlip":30,"body":31},0,24,false,"",{"left":28,"top":28,"width":29,"height":29,"rotate":28,"vFlip":30,"hFlip":30,"body":33},"",{"left":28,"top":28,"width":29,"height":29,"rotate":28,"vFlip":30,"hFlip":30,"body":35},"\u003Cpath d=\"m21 21l-4.34-4.34\"/>\u003Ccircle cx=\"11\" cy=\"11\" r=\"8\"/>\u003C/g>",{"left":28,"top":28,"width":29,"height":29,"rotate":28,"vFlip":30,"hFlip":30,"body":37},"\u003Cpath d=\"M12 22a1 1 0 0 1 0-20a10 9 0 0 1 10 9a5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z\"/>",{"left":28,"top":28,"width":39,"height":39,"rotate":28,"vFlip":30,"hFlip":30,"body":40},15,"
``` -------------------------------- ### Configure Express.js Server and Middleware Source: https://uithing.com/prose/tabs This snippet demonstrates the basic setup of an Express.js server. It includes the initialization of the 'app' object and the configuration of essential middleware such as helmet, cors, and morgan. The code also shows how to set up URL-encoded middleware with a specified limit. ```javascript const express = require("express"); const helmet = require("helmet"); const cors = require("cors"); const morgan = require("morgan"); const app = express(); // Middleware app.use(helmet()); app.use(cors()); app.use(morgan("combined")); app.use( express.urlencoded({ extended: true, }) ); ``` -------------------------------- ### UI Vee Input with Start Icon Example (Vue.js) Source: https://uithing.com/forms/veeinput This example demonstrates how to add a leading icon to the UI Vee Input component. The 'icon' prop accepts an icon name (e.g., from lucide-icons) to visually enhance the input field. This is helpful for indicating the type of input, like an email address. ```vue ``` -------------------------------- ### Simple Table Example (HTML) Source: https://uithing.com/components/table An HTML example for a table displaying user information, including Name, Title, Email, and Role. It features an 'Add user' button and an 'Edit' action for each row. ```html Users ===== A list of all the users in your account including their name, title, email and role. Add user Name Title Email Role Actions Scarlett Wuckert Dynamic Directives Representative scarlett.wuckert38@yahoo.com Viewer Edit Aaliyah Hansen Direct Paradigm Architect aaliyah_hansen25@hotmail.com Member Edit Aliza Predovic District Division Specialist aliza.predovic@yahoo.com Viewer Edit Marielle Rogahn Senior Operations Liaison marielle_rogahn@gmail.com Admin Edit Marisol Little National Quality Facilitator marisol.little79@hotmail.com Viewer Edit Yasmin Lang-Beatty Regional Accounts Facilitator yasmin_lang-beatty@hotmail.com Member Edit ``` -------------------------------- ### UIThing LLMs Examples Documentation Source: https://uithing.com/components/flip-clock This section details the 'Examples' provided by the UIThing LLMs project. It showcases various UI components and patterns, including Cards, Dashboard, Landing Page, and Schema Visualizer. It also links to external demo sites. ```json {"title": 44, "icon": 45, "label": 9, "links": 9, "layout": 9, "path": 46, "stem": 47, "children": 48, "page": 42}, "Examples", "lucide:layout-template", "/examples", "2.examples", [49, 54, 58, 62, 66, 70, 73], {"title": 50, "path": 51, "stem": 52, "icon": 9, "label": 9, "links": 9, "layout": 53}, "Cards", "/examples/cards", "2.examples/cards", "examples", {"title": 55, "path": 56, "stem": 57, "icon": 9, "label": 9, "links": 9, "layout": 53}, "Dashboard", "/examples/dashboard", "2.examples/dashboard", {"title": 59, "path": 60, "stem": 61, "icon": 9, "label": 9, "links": 9, "layout": 53}, "Landing Page", "/examples/landing", "2.examples/landing", {"title": 63, "path": 64, "stem": 65, "icon": 9, "label": 9, "links": 9, "layout": 53}, "Schema Visualizer", "/examples/schema-visualizer", "2.examples/schema-visualizer", {"title": 67, "path": 68, "target": 69}, "Settings Dashboard", "https://settings-dash.behonbaker.com/", "_blank", {"title": 71, "path": 72, "target": 69}, "T-Tag UI", "https://etag-ui.behonbaker.com/", {"title": 74, "path": 75, "target": 69}, "UI Todo", "https://ui-todo.behonbaker.com/" ``` -------------------------------- ### Mermaid Flowchart: Basic Top-to-Bottom Layout (Markdown) Source: https://uithing.com/prose/mermaid This snippet demonstrates a top-to-bottom flowchart using Mermaid syntax, enclosed within markdown code blocks. It outlines a process starting from 'Start Process', moving through 'Get User Input', a validation step, and concluding with 'Show Success Message' and 'End'. ```markdown ``` graph TD A[Start] --> B{Is it working?} B -->|Yes| C[Great!] B -->|No| D[Debug] D --> B C --> E[End] ``` ```