### PUGrid Basic Usage Example Source: https://paper-docs.nuxt.space/docs/components/pu-grid Demonstrates the basic usage of the PUGrid component to create a simple layout with three items. This serves as a starting point for understanding grid structure. ```Vue ``` -------------------------------- ### Start Nuxt Development Server Source: https://paper-docs.nuxt.space/docs/getting-started Starts the Nuxt development server using npm, yarn, or pnpm. This command allows you to view your Nuxt application in the browser during development. ```bash npm run dev # yarn dev # pnpm dev ``` -------------------------------- ### PUTabs Advanced Customization Example Source: https://paper-docs.nuxt.space/docs/components/pu-tabs Provides an example of advanced customization for both tab headers and content, demonstrating fine-grained control over styling and behavior. ```html ``` ```vue ``` -------------------------------- ### PUGrid Responsive Grid Example Source: https://paper-docs.nuxt.space/docs/components/pu-grid Illustrates how to create a responsive grid layout using the PUGrid component. This example shows how items adapt to different screen sizes automatically. ```Vue ``` -------------------------------- ### Install Paper UI Nuxt Module Source: https://paper-docs.nuxt.space/docs/getting-started Installs the paper-ui Nuxt module using npm, pnpm, or yarn. This is the first step to integrate Paper UI components into your Nuxt 3 project. ```bash npm install @paper-ui/nuxt # pnpm install @paper-ui/nuxt # yarn add @paper-ui/nuxt ``` -------------------------------- ### PUToast Basic Usage Example Source: https://paper-docs.nuxt.space/docs/components/pu-toast Demonstrates the basic usage of the PUToast component, showing how to trigger a default toast notification. ```html ``` -------------------------------- ### Basic PUTabs Implementation Source: https://paper-docs.nuxt.space/docs/components/pu-tabs Demonstrates the minimal setup for the PUTabs component using default styling. It shows how to define tabs with labels, content, and icons. ```html ``` ```vue ``` -------------------------------- ### PU-Badge Styling Example Source: https://paper-docs.nuxt.space/docs/components/pu-badge Provides an example of advanced customization for the PU-Badge component using CSS. This demonstrates how to apply custom styles and Tailwind CSS utilities. ```css .pu-badge--default { @apply w-fit text-xs p-1 rounded-lg flex justify-between gap-2 items-center border-2; } ``` -------------------------------- ### Install Paper-UI Nuxt Module Source: https://paper-docs.nuxt.space/docs/components/pu-tabs Instructions for adding the Paper-UI module to your Nuxt project configuration. This is the initial step for integrating Paper UI components. ```typescript export default defineNuxtConfig({ modules: ['@paper-ui/nuxt'] }) ``` -------------------------------- ### PUToast Outlined Usage Example Source: https://paper-docs.nuxt.space/docs/components/pu-toast Illustrates how to use the PUToast component with outlined styling, triggering an outlined toast notification. ```html ``` -------------------------------- ### PU-Badge Basic Usage Source: https://paper-docs.nuxt.space/docs/components/pu-badge Demonstrates the basic implementation of the PU-Badge component. This example shows how to render a simple badge with text. ```javascript ``` -------------------------------- ### PUSwitch Basic Usage Example Source: https://paper-docs.nuxt.space/docs/components/pu-switch Demonstrates the basic implementation of the PUSwitch component, allowing users to toggle a value. This is the default state of the switch. ```html ``` -------------------------------- ### PUGrid Fixed Size Columns Example Source: https://paper-docs.nuxt.space/docs/components/pu-grid Demonstrates creating a grid with fixed-size columns and flexible columns using the `cols` prop. This example sets two 200px columns and one flexible column in between. ```Vue ``` -------------------------------- ### PUGrid Complex Grid Layout Example Source: https://paper-docs.nuxt.space/docs/components/pu-grid Provides an example of a complex grid layout, potentially used for structuring a page with distinct sections like header, content, sidebar, and footer. ```Vue ``` -------------------------------- ### PUGrid 12-Column Grid Example Source: https://paper-docs.nuxt.space/docs/components/pu-grid Shows how to implement a 12-column grid system using the `cols` prop of PUGrid, allowing for precise layout control. This example divides content into main and sidebar sections. ```Vue ``` -------------------------------- ### PUCompare Component Basic Usage Source: https://paper-docs.nuxt.space/docs/components/pu-compare Demonstrates the fundamental implementation of the PU-Compare component, allowing users to visualize differences between two states with an interactive slider. This basic setup requires 'Before' and 'After' content slots. ```html ``` -------------------------------- ### PUSwitch Different Widths Example Source: https://paper-docs.nuxt.space/docs/components/pu-switch Demonstrates how to apply different width variants to the PUSwitch component, such as 'full' or 'mid'. This allows for responsive design adjustments. ```html ``` -------------------------------- ### PU-Tag Basic Usage Source: https://paper-docs.nuxt.space/docs/components/pu-tag Demonstrates the default usage of the PU-Tag component without any additional props or icons. This serves as a foundational example for integrating the tag into your application. ```vue ``` -------------------------------- ### PUSwitch Mid Variant Example Source: https://paper-docs.nuxt.space/docs/components/pu-switch Showcases the 'mid' variant of the PUSwitch component, which likely affects its size or visual style. This variant is presented for alternative styling options. ```html ``` -------------------------------- ### PUGrid Grid with Alignment Example Source: https://paper-docs.nuxt.space/docs/components/pu-grid Demonstrates how to align grid items vertically and horizontally within the grid using the `alignment` and `justify` props of PUGrid and PUGridItem. ```Vue ``` -------------------------------- ### PUGrid Masonry Grid Example Source: https://paper-docs.nuxt.space/docs/components/pu-grid Illustrates how to create a masonry-style grid layout, where items are arranged in columns of equal width but varying heights. This is achieved using `repeat(auto-fill, minmax(250px, 1fr))` for columns. ```Vue ``` -------------------------------- ### PUCopyToClipboard with Custom Text Source: https://paper-docs.nuxt.space/docs/components/pu-copy Illustrates how to customize the text displayed on the PUToCopyClipboard button and the text that gets copied. This allows for more specific user interactions. ```html ``` -------------------------------- ### PU-Modal Component - Basic Usage Source: https://paper-docs.nuxt.space/docs/components/pu-modal Demonstrates the basic implementation of the PU-Modal component. This snippet shows how to render a simple modal dialog. ```html ``` -------------------------------- ### PU-Video Component Basic Usage Source: https://paper-docs.nuxt.space/docs/components/pu-video Demonstrates the fundamental implementation of the PU-Video component. This snippet shows how to integrate the video player into an application, likely requiring a video source URL. ```html ``` -------------------------------- ### PUSwitch Disabled State Example Source: https://paper-docs.nuxt.space/docs/components/pu-switch Illustrates how to disable the PUSwitch component, preventing user interaction. This is useful for states where the switch should not be changed. ```html ``` -------------------------------- ### PUTable Basic Usage Source: https://paper-docs.nuxt.space/docs/components/pu-table Demonstrates the basic implementation of the PUTable component for displaying tabular data. It shows how to define headers and rows for the table. ```html
Name Age Email
John Doe 28 john@example.com
Jane Smith 34 jane@example.com
``` -------------------------------- ### Basic Usage of PUCopyToClipboard Source: https://paper-docs.nuxt.space/docs/components/pu-copy Demonstrates the basic implementation of the PUCopyToClipboard component. This snippet shows how to integrate the component into a Vue application for copying default text. ```html ``` ```javascript import { defineComponent } from 'vue'; import PUCopyToClipboard from './components/PUCopyToClipboard.vue'; export default defineComponent({ components: { PUCopyToClipboard } }); ``` -------------------------------- ### PUCopyToClipboard with Different Sizes Source: https://paper-docs.nuxt.space/docs/components/pu-copy Shows how to use the PUToCopyClipboard component in different sizes (small, medium, large) to fit various UI requirements and design contexts. ```html ``` -------------------------------- ### Basic Usage of Paper UI Dropdown Source: https://paper-docs.nuxt.space/docs/components/pu-dropdown Demonstrates the basic implementation of the Paper UI Dropdown component. It requires a placeholder and allows users to select an option. ```Vue ``` -------------------------------- ### PU-Video Component with Poster Image Source: https://paper-docs.nuxt.space/docs/components/pu-video Illustrates how to use the PU-Video component with a custom poster image displayed before playback begins. This enhances the user experience by providing a visual preview. ```html ``` -------------------------------- ### PUDatePicker Basic Usage Source: https://paper-docs.nuxt.space/docs/components/pu-datepicker Demonstrates the basic implementation of the PUDatePicker component. This snippet shows how to integrate the date picker into an application, allowing users to select dates. ```html ``` -------------------------------- ### PUGrid Grid with Span Example Source: https://paper-docs.nuxt.space/docs/components/pu-grid Shows how to control the span of grid items using PUGridItem's `col-span` prop. This allows for creating layouts where some items occupy more columns than others. ```Vue ``` -------------------------------- ### Basic PUIcon Usage Source: https://paper-docs.nuxt.space/docs/icons Demonstrates the basic usage of the PUIcon component by displaying an icon with a given name. This is the simplest way to integrate an icon into your application. ```vue ``` -------------------------------- ### PUDatePicker With Date Range Restriction Source: https://paper-docs.nuxt.space/docs/components/pu-datepicker Demonstrates how to restrict date selection within a specific range using the `disabledRange` prop. This prop accepts an object with `start` and `end` date properties. ```html ``` -------------------------------- ### Customize Icon Color with Tailwind CSS Source: https://paper-docs.nuxt.space/docs/icons Shows how to change the color of an icon component by applying Tailwind CSS color utility classes. Examples include using predefined color shades like 'text-red-500' or 'text-yellow-400'. ```vue ``` -------------------------------- ### PUButton Variants and Sizes Source: https://paper-docs.nuxt.space/docs/components/pu-button Illustrates the different flavor, size, and shape variants available for the PUButton component. ```html ``` -------------------------------- ### PU-Audio Component Basic Usage Source: https://paper-docs.nuxt.space/docs/components/pu-audio Demonstrates the basic usage of the PU-Audio component, a customizable audio player with playback controls and volume management. It requires the 'src' prop for the audio file URL and depends on PUIcon, Tailwind CSS, and Vue 3 Composition API. ```html ``` -------------------------------- ### PUButton Basic Usage Source: https://paper-docs.nuxt.space/docs/components/pu-button Demonstrates the basic usage of the PUButton component. This is the default appearance of the button. ```html ``` -------------------------------- ### Use PUTabs Component in Nuxt Source: https://paper-docs.nuxt.space/docs/getting-started Demonstrates how to use the PUTabs component in a Nuxt 3 application. It includes importing and using the component with custom tab content and labels. ```vue ``` -------------------------------- ### PULoading Component - Basic Usage Source: https://paper-docs.nuxt.space/docs/components/pu-loading Demonstrates the basic usage of the PULoading component, a hand-drawn style loading indicator. It requires Tailwind CSS and Vue 3 Composition API. ```Vue ``` -------------------------------- ### Paper UI Tooltip: Top Positions Source: https://paper-docs.nuxt.space/docs/components/pu-tooltip Demonstrates the usage of the Paper UI Tooltip component with different top-aligned positions. This includes standard top, top-left, and top-right placements. ```html
Top Top Top
``` -------------------------------- ### PUSearch Component Basic Usage Source: https://paper-docs.nuxt.space/docs/components/pu-search Demonstrates the basic implementation of the PUSearch component. It shows how to bind the input value and handle search events. ```vue ``` -------------------------------- ### PUTable with Pagination Source: https://paper-docs.nuxt.space/docs/components/pu-table Demonstrates the integration of pagination controls with the PUTable component. This allows for managing large datasets by displaying them across multiple pages. ```html
Name Age Email
John Doe 28 john@example.com
Jane Smith 34 jane@example.com
``` -------------------------------- ### PU-TextArea Component - Basic Usage Source: https://paper-docs.nuxt.space/docs/components/pu-textarea Demonstrates the basic usage of the PU-TextArea component, showing how to integrate it into a Vue.js application with v-model support. ```html ``` -------------------------------- ### PU-Audio Component Styling - Core Structure Source: https://paper-docs.nuxt.space/docs/components/pu-audio Provides the core structure styling for the PU-Audio component using Tailwind CSS. This includes styling for the main container and the control elements, ensuring a responsive and visually appealing audio player. ```css .audio-container { @apply relative w-full max-w-lg border-2 border-primary-light-500 rounded-lg shadow-lg p-4 flex items-center gap-3 bg-white; } .controls { @apply flex items-center gap-3; } ``` -------------------------------- ### Paper UI Tooltip Core Styles Source: https://paper-docs.nuxt.space/docs/components/pu-tooltip Provides the base CSS styling for the Paper UI Tooltip component, including general appearance, borders, padding, and shadow effects using Tailwind CSS. ```css .pu-tooltip { @apply relative border-2 border-primary-light-500 bg-white rounded-lg text-center p-4 shadow-lg shadow-primary-light-500/20; } .tooltip-arrow { @apply absolute w-6 h-6 bg-white transform z-10 rounded-sm; border: 2px solid inherit; } ``` -------------------------------- ### PUIcon in PUButton Source: https://paper-docs.nuxt.space/docs/icons Illustrates how to embed the PUIcon component within a PUButton to create buttons with icons. This enhances user interface elements by providing visual cues. ```vue ``` -------------------------------- ### PUGrid Component Source: https://paper-docs.nuxt.space/docs/index The PUGrid component is used for layout and structure, allowing for the arrangement of other components in a grid format. It's a foundational element for building responsive layouts. ```vue ``` -------------------------------- ### PUTooltip Component Source: https://paper-docs.nuxt.space/docs/index The PUTooltip component displays a small informational pop-up when a user hovers over or focuses on an element. It provides additional context or labels. ```vue ``` -------------------------------- ### PURadio Component Usage Source: https://paper-docs.nuxt.space/docs/components/pu-radio Demonstrates the basic and multi-option usage of the PURadio component. It shows how to implement single radio buttons and groups of radio options for user selection. ```vue ``` ```vue ``` -------------------------------- ### PUCopyToClipboard Component Source: https://paper-docs.nuxt.space/docs/index The PUCopyToClipboard component allows users to easily copy text to their clipboard with a single click. It's useful for sharing code snippets or important information. ```vue ``` -------------------------------- ### PUTable with Filtering Source: https://paper-docs.nuxt.space/docs/components/pu-table Shows how to implement global filtering for the PUTable component, enabling users to search and filter rows based on input. This typically relies on the PUInput component. ```html
Name Age Email
John Doe 28 john@example.com
Jane Smith 34 jane@example.com
``` -------------------------------- ### Configure Paper UI in Nuxt Source: https://paper-docs.nuxt.space/docs/getting-started Configures the Paper UI module by adding 'paper-ui' to the modules array in your nuxt.config.ts file. This makes Paper UI components globally available. ```typescript export default defineNuxtConfig({ modules: ['paper-ui'] }) ``` -------------------------------- ### PUTabs Component Source: https://paper-docs.nuxt.space/docs/index The PUTabs component enables users to switch between different content panels using tabs. It's effective for organizing related content. ```vue ``` -------------------------------- ### PUButton with Icons Source: https://paper-docs.nuxt.space/docs/components/pu-button Shows how to use the PUButton component with icons placed on the left or right. ```html ``` -------------------------------- ### PU-Avatar: Basic Usage Source: https://paper-docs.nuxt.space/docs/components/pu-avatar Demonstrates the basic usage of the PU-Avatar component. This component supports images, fallback content, and various styling options for customization. ```html ``` -------------------------------- ### PUToast Base Styling Source: https://paper-docs.nuxt.space/docs/components/pu-toast Provides the core CSS structure for the PUToast component using Tailwind CSS, defining its layout and general appearance. ```css .pu-toast { @apply flex items-center justify-between p-4 gap-2; @apply rounded-lg shadow-md transition-all duration-300; @apply ease-in-out border opacity-100 transform scale-100; } ``` -------------------------------- ### PUButton Base Styles Source: https://paper-docs.nuxt.space/docs/components/pu-button Defines the base CSS styles for the PUButton component, including padding, shadow, transition, and layout. ```css .pu-button { @apply py-2 shadow-md transition duration-200 ease-in-out flex justify-center gap-1; } .pu-button:not(:disabled):hover { @apply shadow-primary-light-500/50 font-bold; } ``` -------------------------------- ### Paper UI Tooltip: Bottom Positions Source: https://paper-docs.nuxt.space/docs/components/pu-tooltip Illustrates the Paper UI Tooltip component's bottom positioning options. This covers bottom, bottom-left, and bottom-right placements for tooltips. ```html
Bottom Bottom Bottom
``` -------------------------------- ### Counter Component - Basic Usage Source: https://paper-docs.nuxt.space/docs/components/pu-counter Demonstrates the basic usage of the Paper UI Counter component. It displays a counter with default settings and increment/decrement controls. ```vue ``` -------------------------------- ### PUInput Component with Label Source: https://paper-docs.nuxt.space/docs/components/pu-input Illustrates the PUInput component when used with a label. Labels provide context and improve accessibility. ```html ``` -------------------------------- ### PU-Avatar: Fallback Content Source: https://paper-docs.nuxt.space/docs/components/pu-avatar Demonstrates how to configure fallback content for the PU-Avatar component when an image source is not provided or fails to load. ```html ``` -------------------------------- ### PUInput Component Usage Source: https://paper-docs.nuxt.space/docs/components/pu-input Demonstrates the basic usage of the PUInput component. This component is a customizable input field designed for web applications. ```html ``` -------------------------------- ### PUSearch Component Loading State Source: https://paper-docs.nuxt.space/docs/components/pu-search Shows how to activate the loading state for the PUSearch component, typically used while fetching search results. ```vue ``` -------------------------------- ### PU-Select Basic Usage Source: https://paper-docs.nuxt.space/docs/components/pu-select Demonstrates the fundamental usage of the PU-Select component, allowing users to select an option from a predefined list. It supports v-model for data binding. ```html ``` -------------------------------- ### PUToast Transition Effects Styling Source: https://paper-docs.nuxt.space/docs/components/pu-toast Specifies CSS for smooth enter and leave animations of the PUToast component using Tailwind CSS transitions. ```css .toast-transition-enter-active, .toast-transition-leave-active { @apply transition-all duration-300; } .toast-transition-enter-from { @apply opacity-0 transform translate-y-4; } .toast-transition-leave-to { @apply opacity-0 transform translate-y-4; } ``` -------------------------------- ### PUSlider Basic Usage Source: https://paper-docs.nuxt.space/docs/components/pu-slider Demonstrates the basic implementation of the PUSlider component. It shows how to bind a value to the slider and display it. ```html ``` -------------------------------- ### PUSearch Component with Suggestions Source: https://paper-docs.nuxt.space/docs/components/pu-search Illustrates how to use the PUSearch component with a list of suggestions. This includes defining the suggestion data and handling suggestion selection. ```vue ``` -------------------------------- ### Basic PUDivider Usage Source: https://paper-docs.nuxt.space/docs/components/pu-divider Demonstrates the basic implementation of the PUDivider component for creating a simple horizontal visual separation. ```vue ``` -------------------------------- ### PUButton Component Source: https://paper-docs.nuxt.space/docs/index The PUButton component is a standard button element used for triggering actions. It provides customizable styling and click event handling. ```vue ``` -------------------------------- ### PULoading Component - Skeleton Loading Source: https://paper-docs.nuxt.space/docs/components/pu-loading Illustrates the skeleton loading effect using the PULoading component. This component is built with Vue 3 Composition API and styled with Tailwind CSS. ```Vue ```