BOOTH // NEXTUI

Button

Retro diner button with primary, secondary, and ghost variants in three sizes. Cherry red accent, bold uppercase labels. Renders as a Next.js Link when an href is provided.

$npx @voltenworks/shipui add button --theme booth
Or install the base component for free:
Live Preview
Open full demo
voltenworks.com/shipui/booth/demo/components#01-button
Usage
TSX
<Button variant="primary" size="md">Get started</Button>
Variants
<Button variant="primary">Get started</Button>
<Button variant="secondary">Learn more</Button>
<Button variant="ghost">Cancel</Button>
<Button variant="primary" size="sm">Apply</Button>
<Button variant="primary" size="lg">Sign up</Button>
Source
TSX
import Link from 'next/link'
import { cn } from '@/lib/utils'

interface ButtonBaseProps {
  variant?:   'primary' | 'secondary' | 'ghost'
  size?:      'sm' | 'md' | 'lg'
  className?: string
  children:   React.ReactNode
}

type ButtonAsButton = ButtonBaseProps &
  Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof ButtonBaseProps> & {
    href?: never
  }

type ButtonAsLink = ButtonBaseProps & {
  href: string
}

type ButtonProps = ButtonAsButton | ButtonAsLink

const SIZE_CLASSES: Record<NonNullable<ButtonBaseProps['size']>, string> = {
  sm: 'btn-sm',
  md: 'btn-md',
  lg: 'btn-lg',
}

const VARIANT_CLASSES: Record<NonNullable<ButtonBaseProps['variant']>, string> = {
  primary:   'btn-primary',
  secondary: 'btn-secondary',
  ghost:     'btn-ghost',
}

export function Button({
  children,
  variant   = 'primary',
  size      = 'md',
  className,
  ...props
}: ButtonProps): React.JSX.Element {
  const classes = cn('btn-base', SIZE_CLASSES[size], VARIANT_CLASSES[variant], className)

  if ('href' in props && props.href !== undefined) {
    const { href, ...linkProps } = props
    return (
      <Link href={href} className={classes} {...linkProps}>
        {children}
      </Link>
    )
  }

  const { type = 'button', ...buttonProps } = props as React.ButtonHTMLAttributes<HTMLButtonElement>
  return (
    <button type={type} className={classes} {...buttonProps}>
      {children}
    </button>
  )
}
Preview in theme demoGet full theme, $29
Works withNext.js 15React 19Tailwind v4TypeScript 5
More from BOOTH // NEXT
BOOTH // NEXTUI

Badge

Diner-styled badge with four color variants: red, teal, chrome, and ink. Suited for category labels, tags, and status indicators.

BOOTH // NEXTUI

Text

Polymorphic text primitive with body, caption, label, and code variants. Renders as p, span, or div via the `as` prop.

BOOTH // NEXTUI

Card

Composable card with Card, CardHeader, CardBody, and CardFooter sub-components. Warm ivory surfaces with diner-styled borders.