vechai / vechaiui

A set of high-quality accessible React UI components with the built-in dark mode using Tailwind CSS. Pre-designed headless ui and radix-ui.

Home Page:https://www.vechaiui.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Button Type does not allow HTML Form name and value

cmgriffing opened this issue · comments

The Button Type does not allow a name or value prop when using TypeScript.

I am not sure if this is Vechai problem or an issue with the base React Type.

However, I am currently having to do this in a Remix.run site:

<Form method="post">
  <input
    name="foo"
    type="hidden"
    value="bar"
  />
  <Button variant="solid">
    No
  </Button>
</Form>

With the name and value props I could do this:

<Form method="post">
  <Button name="foo" value="bar" variant="solid">
    No
  </Button>
</Form>

Awesome thanks. I agree that the more accurate type is a cleaner solution.