GAMING // NEXTUI

Text

Polymorphic text component with body, caption, label, and code variants. Chakra Petch for display, Space Grotesk for body.

$npx @voltenworks/shipui add text --theme gaming
Or install the base component for free:
Live Preview
Open full demo
voltenworks.com/shipui/gaming/demo/components#03-text
Usage
TSX
<Text variant="body">Sub-15ms matchmaking across 42 global regions.</Text>
Variants
<Text variant="body">Sub-15ms matchmaking across 42 global regions.</Text>
<Text variant="caption">Last calibrated 30 seconds ago</Text>
<Text variant="label">QUEUE STATUS</Text>
<Text variant="code">const match = await queue.findRanked()</Text>
Source
TSX
import { cn } from '@/lib/utils'

type TextVariant = 'body' | 'caption' | 'label' | 'code'
type TextElement = 'p' | 'span' | 'div' | 'h2' | 'h3' | 'h4'

interface TextProps {
  children:   React.ReactNode
  variant?:   TextVariant
  as?:        TextElement
  className?: string
}

const variantClass: Record<TextVariant, string> = {
  body:    'text-body',
  caption: 'text-caption',
  label:   'text-label',
  code:    'text-code',
}

export function Text({
  children,
  variant = 'body',
  as: Tag  = 'p',
  className,
}: TextProps): React.JSX.Element {
  return (
    <Tag className={cn(variantClass[variant], className)}>
      {children}
    </Tag>
  )
}
Preview in theme demoGet full theme, $29
Works withNext.js 15React 19Tailwind v4TypeScript 5
More from GAMING // NEXT
GAMING // NEXTUI

Button

Competitive gaming button with primary, secondary, and ghost variants in three sizes. Neon magenta accent, Chakra Petch labels, uppercase tracking. Renders as a Next.js Link when an href is provided.

GAMING // NEXTUI

Badge

Esports badge with magenta, cyan, and dim variants. Bold uppercase labels for status indicators and system tags.

GAMING // NEXTUI

Card

System card with title, description, and optional children slot. Dark surface with neon border accents for feature and data panels.