Components / PaperSelect

Forms

PaperSelect

A paper-styled select trigger for compact option picking.

↗ menus can be calm and still unmistakable.

Preview

import * as React from 'react'
import { cn } from '@/lib/utils'

export interface PaperSelectOption {
  label: string
  value: string

Installation

Copy this file into your project, export its barrel, and then add it to the master UI index.

  1. Step 1.Create this file:
    components/ui/paperSelect/paperSelect.tsx
  2. Step 2.Create the barrel:
    components/ui/paperSelect/index.ts
  3. Step 3.Add this export in components/ui/index.ts:
    export * from './paperSelect'

Variants

Default

Labeled

Props

PropTypeDefaultDescription
optionsPaperSelectOption[][]List of selectable label/value options.
labelstringundefinedOptional field label above control.
hintstringundefinedSmall helper text below control.

Examples

Plan chooser

Use for small finite option sets in settings forms.

<PaperSelect options={[{ label: 'Starter', value: 'starter' }]} />

Environment picker

Pairs well with mono labels for operational UIs.

<PaperSelect label="Environment" options={...} />