Paragraph
A component for displaying paragraph text.
Installation
import { Paragraph } from "@ginga-ui/core";Basic usage
A simple paragraph example.
This is a basic paragraph component. Use it to display text content.
import { Paragraph } from "@ginga-ui/core";
import styles from "./paragraph.module.css";
export function BasicExample() {
return (
<Paragraph className={styles.basicParagraph}>
This is a basic paragraph component. Use it to display text content.
</Paragraph>
);
}Multiple paragraphs
Displays multiple paragraphs.
This is the first paragraph. The Paragraph component displays readable text with appropriate line height and margins.
This is the second paragraph. Use multiple paragraphs to organize information.
This is the third paragraph. Each paragraph is visually separated, creating an easy-to-read structure.
import { Paragraph } from "@ginga-ui/core";
import styles from "./paragraph.module.css";
export function MultipleExample() {
return (
<div className={styles.multipleParagraphs}>
<Paragraph>
This is the first paragraph. The Paragraph component displays readable
text with appropriate line height and margins.
</Paragraph>
<Paragraph>
This is the second paragraph. Use multiple paragraphs to organize
information.
</Paragraph>
<Paragraph>
This is the third paragraph. Each paragraph is visually separated,
creating an easy-to-read structure.
</Paragraph>
</div>
);
}Long text
An example of a paragraph containing long text.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
import { Paragraph } from "@ginga-ui/core";
import styles from "./paragraph.module.css";
export function LongTextExample() {
return (
<Paragraph className={styles.longParagraph}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id
est laborum.
</Paragraph>
);
}Props
Paragraph
| Name | Type | Default | Description |
|---|---|---|---|
render | (props) => ReactElement | - | Replaces the root element. Return an element that receives the given props, such as next/link. |
Also accepts the attributes of the HTML p (opens in a new tab) element.