mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2025-09-19 02:02:13 +02:00
docs: Update SubmitButton component
Change loading label and add to documentation.
This commit is contained in:
12
src/form/components/SubmitButton.md
Normal file
12
src/form/components/SubmitButton.md
Normal file
@@ -0,0 +1,12 @@
|
||||
SubmitButton is a component that renders a button with different states based on
|
||||
the `state` prop. It can be used to indicate the status of a form submission.
|
||||
|
||||
```jsx padded
|
||||
<SubmitButton state={1} />
|
||||
|
||||
<SubmitButton state={2} />
|
||||
|
||||
<SubmitButton state={3} />
|
||||
|
||||
<SubmitButton label="Submitting" state={2} />
|
||||
```
|
Reference in New Issue
Block a user