Skip to content

Why cant I make geist button type="submit"? #449

Answered by ofekashery
BekaArabidze asked this question in Q&A
Discussion options

You must be logged in to vote

As documented, you should use the htmlType attribute to set the Button HTML type. For example:

<Button type="success" htmlType="submit">Success</Button>

For Input, use the regular type attribute:

<Input placeholder="Number Input" type="number" />

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@BekaArabidze
Comment options

Answer selected by ofekashery
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants