SOLAR // STUDIOUI

Text

Polymorphic text primitive with body, caption, label, and code variants styled for the SOLAR warm light palette.

$npx @voltenworks/shipui add text --theme solar
Or install the base component for free:
Live Preview
Open full demo
voltenworks.com/shipui/solar/demo/components#03-text
Usage
TSX
<Text variant="body">Ship faster with a solid foundation.</Text>
Variants
<Text variant="body">Ship faster with a solid foundation.</Text>
<Text variant="caption" as="span">Updated 3 days ago</Text>
<Text variant="label" as="span">Category</Text>
<Text variant="code" as="span">npm run dev</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 SOLAR // STUDIO
SOLAR // STUDIOUI

Button

Warm-toned light-mode button with primary, secondary, and ghost variants in three sizes. Renders as a Next.js Link when an href is provided.

SOLAR // STUDIOUI

Badge

Warm-palette badge for category tags and status labels in the SOLAR light theme.

SOLAR // STUDIOUI

Card

Feature card with a blob-shaped icon background in yellow, coral, or sky, a category tag, title, and description.