Getting Started

  • Introduction
  • Installation

Components

  • Button
  • Switch
  • Avatar
  • Callout
  • Avatar Group
  • Card
  • Divider
  • Link
  • Page
  • PageBody
  • Page Marquee
  • PageSection
  • Toasts

Typography

  • Introduction
  • Fields
  • Code Preview
Mockline v0.17.3

PageSection

A versatile section component for creating visually appealing content blocks with support for headlines, titles, descriptions, and flexible layouts.

Overview

The PageSection component is designed for creating structured content sections with rich formatting options. It supports headlines, titles, descriptions, icons, and flexible layouts in both horizontal and vertical orientations.

Usage

Basic Usage

With Icon

Horizontal Layout with Image

Beautiful Vue UI Components

UI Components

Vertical Layout

Content Block

Custom Alignment

Content aligned to the left

Props

as
string

The HTML element to render as.

headline
string

Small text displayed above the title.

icon
string

Icon name to display in the leading area.

title
string

Main title of the section.

description
string

Descriptive text below the title.

align
'left' | 'center' | 'right'

Text alignment within the section.

orientation
'horizontal' | 'vertical'

Layout orientation of the section.

reverse
boolean

Reverse the order of content in horizontal layout.

class
string

Additional classes to apply to the section.

Slots

default
any

Content to be displayed alongside the text content.

title
any

Custom title content.

description
any

Custom description content.

headline
any

Custom headline content.

leading
any

Custom leading content (replaces icon).

Best Practices

  1. Content Structure:
    • Use headlines to categorize content
    • Keep titles concise and descriptive
    • Use descriptions to provide additional context
    • Choose appropriate icons that represent the content
  2. Layout Selection:
    • Use horizontal layout for content with media
    • Choose vertical layout for stacked content
    • Consider content hierarchy when using reverse
  3. Alignment:
    • Use center alignment for featured content
    • Left align text-heavy content
    • Maintain consistent alignment across related sections
  4. Responsive Design:
    • Test both orientations on different screen sizes
    • Ensure images scale appropriately
    • Consider mobile-first content organization
    • Use appropriate spacing for different devices
Page Marquee
A component for creating smooth, animated scrolling content in horizontal or vertical directions.
Toasts
A component for displaying temporary notifications and feedback messages.