Select

Formulário

Uma escolha numa lista curta. Para lista longa ou com busca, use Combobox.

Substitui no Brain:partners selectSelecao

Escolha simples

"use client";

import { FormField, Select } from "@paytime/ui";
import { useState } from "react";

export default function Example() {
  const [plan, setPlan] = useState("expert");
  return (
    <FormField label="Plano" className="max-w-xs">
      <Select
        value={plan}
        onValueChange={setPlan}
        options={[
          { value: "essencial", label: "Essencial" },
          { value: "expert", label: "Expert" },
          { value: "enterprise", label: "Enterprise" },
        ]}
      />
    </FormField>
  );
}