Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

1.1 KB
Raw Blame
'use client'

import { Input, Label } from 'ui'

export default function CopyFormLabels() {
  return (
    <div className="flex flex-col gap-8">
      <div className="flex flex-col gap-4 w-[300px]">
        <span className="text-xs text-foreground-muted">Bad Example</span>
        <div className="grid w-full items-center gap-1.5">
          <Label htmlFor="table-name-bad">Name your table</Label>
          <Input id="table-name-bad" placeholder="my_table" />
          <p className="text-sm text-muted-foreground">
            This field allows you to specify a name for your table using letters, numbers, and
            underscores
          </p>
        </div>
      </div>
      <div className="flex flex-col gap-4 w-[300px]">
        <span className="text-xs text-foreground-muted">Good Example</span>
        <div className="grid w-full items-center gap-1.5">
          <Label htmlFor="table-name-good">Table name</Label>
          <Input id="table-name-good" placeholder="my_table" />
          <p className="text-sm text-muted-foreground">Letters, numbers, and underscores only</p>
        </div>
      </div>
    </div>
  )
}