MainContent
The scrolling main column, the target of the skip link. Pick width wide for boards and tables, full for editors.
- MainContent
PreviewLink to the section Preview
Live in all three themes. Everything here is interactive.
Light theme, MainContent
Dark theme, MainContent
High contrast theme, MainContent
UsageLink to the section Usage
import { MainContent } from '@skribly/ui/shell'<MainContent width="wide">
<PageHeader title="Board" />
…
</MainContent>Every label is a prop, so the app passes its own words in its own language. See no built-in text.
AccessibilityLink to the section Accessibility
- The main landmark, with tabindex -1 so the skip link can move focus into it, and a tab stop while its content overflows, so the keyboard can scroll text with nothing focusable in it; its ring shows only for keyboard focus.
- Padding grows with the layout, and the scrollbar gutter is kept stable so content does not jump.
This demo runs through axe in all three themes on every test run. See what the tests check.