WANTED // NEXTUI
Text
Polymorphic text component with body, caption, label, and code variants. Rye for display headings, Source Serif for body copy, western parchment palette.
$
Or install the base component for free:
Live Preview
Open full demoUsage
TSX
<Text variant="body">The bounty board for serious security researchers.</Text>Variants
<Text variant="body">The bounty board for serious security researchers.</Text>
<Text variant="caption">Posted 12 hours ago</Text>
<Text variant="label">Security Bounty Platform</Text>
<Text variant="code" as="span">npm run dev</Text>
Source
TSX
import { cn } from '@/lib/utils'
interface TextProps {
children: React.ReactNode
variant?: 'body' | 'caption' | 'label' | 'code'
as?: 'p' | 'span' | 'div'
className?: string
}
export function Text({
children,
variant = 'body',
as: Tag = 'p',
className,
}: TextProps): React.JSX.Element {
return (
<Tag
className={cn(
variant === 'body' && 'text-body',
variant === 'caption' && 'text-caption',
variant === 'label' && 'text-label',
variant === 'code' && 'text-code',
className,
)}
>
{children}
</Tag>
)
}
Works withNext.js 15React 19Tailwind v4TypeScript 5
More from WANTED // NEXT
Button
Western bounty button with primary, secondary, ghost, and secondary-dark variants in three sizes. Gold accent, uppercase Rye display font, parchment textures. Renders as a Next.js Link when an href is provided.
Badge
Severity badge with critical, high, medium, and accent variants. Uppercase labels for bounty threat levels and status indicators.
Card
Bounty card with tag badge, title, and description. Dark parchment surface with severity-colored badge indicators for vulnerability and threat categories.