Skip to content

Import

import { P } from '@dnb/eufemia/elements'

Description

Paragraphs are a block-level elements, used to structure and format text contents.

Paragraph class modifiers

Eufemia comes with several styles you can use on paragraphs and other HTML text elements:

Weights

  • .dnb-p (Body text)
  • .dnb-p--medium

Sizes

  • .dnb-p--small
  • .dnb-p--x-small

Variants

  • .dnb-p--lead

Read more about Fonts in the Designer Guides.