Main

Semantic <main> element wrapper for the primary content area of a page.

Install

npx @vultra/cli add main

Usage

<script>
  import { Main } from '@vultra/ui';
</script>

<Main>
  <h1>Welcome</h1>
  <p>This is the main content area.</p>
</Main>

Props

PropTypeDefaultDescription
classstring-Additional CSS classes

Slots

SlotDescription
defaultPrimary page content

Accessibility

  • Renders as <main>, the landmark for primary page content.
  • Only one <main> should exist per page.
  • Screen readers use this for “jump to main content” navigation.