Layout Components
Page structure and layout components for building consistent interfaces. These components handle spacing, grids, headers, and common page patterns.
Installation
npm install @happyvertical/smrt-svelte import { Container, Grid, EmptyState } from '@happyvertical/smrt-svelte';Components
Container
Centered max-width container with responsive padding.
Grid
Responsive grid layout with configurable columns and gaps.
EmptyState
Placeholder for empty lists or content areas with icon and CTA.
Header
Site header with navigation slots.
Footer
Site footer with links and content slots.
Masthead
Hero section for page headers with title and subtitle.
PageHeader
Page title with breadcrumbs and actions.
SummaryCard
Compact info card for dashboards and metrics.
Layout Patterns
Common layout patterns using these components:
Page Layout
Header + Container + Footer for consistent page structure.
Dashboard
Grid of SummaryCards with EmptyState fallback.
Content Page
Masthead + Container with PageHeader for long-form content.
List View
Container with Grid of cards or EmptyState when empty.