Skip to content
Ginga UI
Ginga UI
日本語

Getting started

  • Overview
  • Quick start
  • Theme generation
  • Custom rendering
  • All components

Forms

  • Button
  • Checkbox
  • Input
  • Radio
  • Questionnaire
  • SegmentedControl
  • Select
  • ComboBox
  • NumberField
  • SearchField
  • Slider
  • Switch
  • FormControl

Display

  • Accordion
  • Alert
  • AlertDialog
  • Badge
  • CodeBlock
  • Card
  • Dialog
  • Drawer
  • Image
  • List
  • Popover
  • Menu
  • Tooltip
  • Table
  • Tab
  • Toast
  • Trace

Typography

  • Heading
  • Paragraph

Navigation

  • Anchor

Layout

  • Box

Resources

  • Changelog
  • GitHub (opens in a new tab)

Logo: Twemoji (opens in a new tab) (CC-BY 4.0)

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.

paragraph.tsx
paragraph.module.css
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.

paragraph.tsx
paragraph.module.css
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.

paragraph.tsx
paragraph.module.css
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

NameTypeDefaultDescription
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.