Text

Text paragraph primitive with muted, subtle and mono variants on top of your base type styles. Keeps secondary copy and inline technical text consistent.

src/registry/ui/text.tsx/r/text.json

Installation#

bash
npx shadcn@latest add @minidev/text

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/text.json

Usage#

tsx
import { Text } from "@/components/ui/text"

export function Example() {
  return (
    <Text muted>Muted body copy for secondary information.</Text>
  )
}

API reference#

Text props
PropTypeDefault
mutedboolean-
subtleboolean-
monoboolean-

Also accepts every prop of <p>, passed through to the root element.

Examples#

All layout components

Learn more