Components
Prose
Styles the headings, paragraphs, lists, quotes, code and tables written inside it, for guides and articles.
Ombelle · light
Prose
Building an app shell
A sidebar, a header and a content area that reads well at any width.
Add the sidebar component and read the install guide.
- Collapses to icons
- Opens as a sheet on phones
Keep navigation where people expect it.
Installation
Run in a project initialized with an Ombelle preset (see Get started). The component uses the saved project preset. Run the command from your app folder; it shows the changes and asks before writing.
pnpm dlx @ombelle-ui/cli@1.1.2 add proseAdds components/ui/prose.tsx and installs react, clsx, tailwind-merge with lifecycle scripts disabled.
In a liquid glass project the plan adds a notice that accessibility is not guaranteed, because text contrast depends on the background behind the glass.
Usage
example.tsx
import { Prose, ProseLead } from '@/components/ui/prose'
export function Example(){return <Prose><h1>Building an app shell</h1><ProseLead>A sidebar, a header and a content area that reads well at any width.</ProseLead><h2>Install</h2><p>Add the <code>sidebar</code> component, then wrap your layout in <a href="/docs/sidebar">SidebarProvider</a>.</p><ul><li>Collapses to icons on desktop</li><li>Opens as a sheet on phones</li></ul><blockquote>Keep navigation where people expect it.<footer>Sidebar design notes</footer></blockquote></Prose>}API and states
- API
- Prose (measure narrow, default or wide), ProseLead
- Minimum states
- Narrow, default and wide measure, long words and URLs, a wide table that scrolls, nested Code Block
- Native basis
- CSS on the elements inside one slot, one server template for both editions
- Styles
- Stable in Ombelle, Papier, Organic, Retro futurism, minimalist, neo-brutalism and flat, light and dark. Liquid glass: stable, accessibility not guaranteed.