All components

Typography

Style headings, prose, and simple lists.

Examples

Style headings, prose, and simple lists

Release checklist

Before you publish, review the queue.

  • Validate form behavior
  • Check keyboard focus
React code
import { Typography } from "@accelerate/react/components";

export function Example() {
  return (
    <>
      <Typography>
        <h3>Release checklist</h3>
        <p>Before you publish, <strong>review the queue</strong>.</p>
        <ul>
          <li>Validate form behavior</li>
          <li>Check keyboard focus</li>
        </ul>
      </Typography>
    </>
  );
}
Angular code
import { Component } from "@angular/core";
import { AccTypography } from "@accelerate/angular/components";

@Component({
  selector: "app-example",
  imports: [
    AccTypography,
  ],
  template: `
    <div accTypography>
      <h3>Release checklist</h3>
      <p>Before you publish, <strong>review the queue</strong>.</p>
      <ul>
        <li>Validate form behavior</li>
        <li>Check keyboard focus</li>
      </ul>
    </div>
  `,
})
export class Example {}

Installation

Source preview. The expanded component catalog is ahead of the public npm releases. To run these examples in your own application, use packages built from the SDK source used for the previews or a release that includes the APIs below.

React
@accelerate/ui@0.4.0 and @accelerate/react@0.4.0
Angular
@accelerate/ui@0.4.0 and @accelerate/angular@0.2.0

Load @accelerate/ui/theme.css and put acc-theme on the app or the region using Accelerator components. See the framework setup guide for the theme and adapter conventions.

Usage

Styles authored headings, paragraphs, lists, blockquotes and links.

Import the React component Typography from @accelerate/react/components. For Angular, add AccTypography to the standalone component’s imports and use <div accTypography>.

Examples use these React parts: Typography. The Angular examples show the corresponding directives and template hosts.

API reference

Content
Author semantic headings, paragraphs, lists, and links.
Heading levels
Choose levels that fit the surrounding document.