Veil UI
Components

Paragraph

Body copy with relaxed leading, balanced wrapping and a muted tone.

Installation

$ npx veil-ui@latest add paragraph

Usage

import { Paragraph } from "@/components/ui/paragraph";

<Paragraph tone="muted">Supporting copy for the section.</Paragraph>;

Examples

Basic

Components are added as source files. Edit them, delete them, shape them around your product.

Muted

The CLI resolves dependencies, writes the files and installs what is missing.

Lead

A monochrome component collection for React. Built on Radix UI and Tailwind CSS v4, copied into your project with one command.

API reference

PropTypeDefaultDescription
size"sm" | "base" | "lg""base"Font size preset.
tone"default" | "muted""default"Foreground color tone.

Accessibility

  • Renders a <p> with relaxed leading and balanced wrapping for readable measure.
  • Pair the lead size with a max-w-prose container to keep line length comfortable.

Vue and plain HTML

This component also ships for Vue (Reka UI) and plain HTML. Install it with npx veil-ui add paragraph --framework vue or switch the framework in components.json.

<script setup lang="ts">
import { cn } from "@/lib/utils";

import type { ParagraphProps } from "./types";

const sizes = {
  sm: "text-sm",
  base: "text-base",
  lg: "text-lg",
} as const;

const props = withDefaults(defineProps<ParagraphProps>(), {
  size: "base",
  tone: "default",
});
</script>

<template>
  <p
    data-slot="paragraph"
    :class="
      cn(
        sizes[props.size],
        'leading-relaxed text-pretty',
        props.tone === 'muted' && 'text-muted-foreground',
        props.class,
      )
    "
  >
    <slot />
  </p>
</template>

On this page