···11+---
22+title: Content
33+description: A wrapper component that applies consistent spacing styles to content elements.
44+---
55+66+import { PropDocs } from '../../../lib/PropDocs'
77+import { Example } from '../../../lib/Example'
88+import { Basic } from '../../../examples/content/basic'
99+import { WithLists } from '../../../examples/content/with-lists'
1010+import { WithBlockquote } from '../../../examples/content/with-blockquote'
1111+1212+<Example src={Basic} />
1313+1414+## Installation
1515+1616+Run the following command to add the content component to your project.
1717+1818+```bash
1919+pnpm hip install content
2020+```
2121+2222+## Props
2323+2424+<PropDocs components={["Content"]} />
2525+2626+## Features
2727+2828+### Automatic Spacing
2929+3030+The Content component automatically applies consistent margins to child elements:
3131+3232+- **Headings (h1-h5)**: Top and bottom margins for proper vertical rhythm
3333+- **Paragraphs**: Spacing between paragraphs, with adjusted spacing when nested in lists or blockquotes
3434+- **Blockquotes**: Left border, padding, and zero margins for proper indentation
3535+- **Lists**: Proper spacing maintained for list items
3636+3737+### With Lists
3838+3939+The Content component handles spacing for both ordered and unordered lists:
4040+4141+<Example src={WithLists} />
4242+4343+### With Blockquotes
4444+4545+Blockquotes receive special styling with proper indentation and spacing:
4646+4747+<Example src={WithBlockquote} />
4848+4949+5050+## Related Components
5151+5252+- [Typography](/docs/components/content/typography) - For semantic typography components
5353+- [Text](/docs/components/content/text) - For flexible text styling
5454+- [Card](/docs/components/content/card) - For grouping content in containers
5555+
+25
apps/docs/src/examples/content/basic.tsx
···11+import { Content } from "@/components/content";
22+import { Body, Heading1, Heading2, Heading3 } from "@/components/typography";
33+44+export function Basic() {
55+ return (
66+ <Content>
77+ <Heading1>Main Heading</Heading1>
88+ <Body>
99+ This is a paragraph with proper spacing applied by the Content wrapper.
1010+ The Content component automatically applies consistent margins to
1111+ headings, paragraphs, and other content elements.
1212+ </Body>
1313+ <Heading2>Section Heading</Heading2>
1414+ <Body>
1515+ Another paragraph that demonstrates the spacing between elements. The
1616+ Content wrapper ensures consistent vertical rhythm throughout your
1717+ content.
1818+ </Body>
1919+ <Heading3>Subsection</Heading3>
2020+ <Body>
2121+ Content spacing is automatically handled for all child elements.
2222+ </Body>
2323+ </Content>
2424+ );
2525+}
···11+import { Content } from "@/components/content";
22+import { Blockquote, Body, Heading2 } from "@/components/typography";
33+44+export function WithBlockquote() {
55+ return (
66+ <Content>
77+ <Heading2>Blockquote Example</Heading2>
88+ <Body>Here's how blockquotes look within the Content component:</Body>
99+ <Blockquote>
1010+ <Body>
1111+ This is a blockquote with proper spacing and styling. The Content
1212+ component applies consistent margins and padding to blockquotes.
1313+ </Body>
1414+ <Body>
1515+ Multiple paragraphs within a blockquote maintain proper spacing
1616+ relative to each other.
1717+ </Body>
1818+ </Blockquote>
1919+ <Body>
2020+ Content continues after the blockquote with appropriate spacing.
2121+ </Body>
2222+ </Content>
2323+ );
2424+}
+32
apps/docs/src/examples/content/with-lists.tsx
···11+import { Content } from "@/components/content";
22+import {
33+ Body,
44+ Heading2,
55+ ListItem,
66+ OrderedList,
77+ UnorderedList,
88+} from "@/components/typography";
99+1010+export function WithLists() {
1111+ return (
1212+ <Content>
1313+ <Heading2>List Examples</Heading2>
1414+ <Body>Here are some examples of lists within the Content component:</Body>
1515+ <UnorderedList>
1616+ <ListItem>First item in an unordered list</ListItem>
1717+ <ListItem>Second item with proper spacing</ListItem>
1818+ <ListItem>Third item maintains consistent margins</ListItem>
1919+ </UnorderedList>
2020+ <Body>And an ordered list:</Body>
2121+ <OrderedList>
2222+ <ListItem>First step</ListItem>
2323+ <ListItem>Second step</ListItem>
2424+ <ListItem>Third step</ListItem>
2525+ </OrderedList>
2626+ <Body>
2727+ Paragraphs within lists have adjusted spacing to maintain proper
2828+ hierarchy.
2929+ </Body>
3030+ </Content>
3131+ );
3232+}