Skip to content

Commit

Permalink
docs for button field groups #19
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Pollock committed Jul 26, 2018
1 parent 4502c62 commit c90a6d5
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions manual/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,35 @@ If the prop `type` is input, the type of input is controlled by the `inputType`
/>
```

### Submit Button Field Group
```js
<FieldGroup
id={'control-24'}
label={'This will go in the label element'}
type={'button'}
innertype={'submit'}
value={'Submit Form'}
onClick={() => {
//do stuff when clicked
}}
/>

```

### Button Field Group
```js
<FieldGroup
id={'control-24'}
label={'This will go in the label element'}
type={'button'}
innertype={'button'}
value={false}
onClick={() => {
//do stuff when clicked
}}
/>


### Select Field Groups

Select field groups happen when you pass "select" to the `type` prop.
Expand Down Expand Up @@ -235,6 +264,7 @@ let selectFieldValue = '';
}
]}
/>
```

## Magic Select Groups
Magic select groups use `MagicSelect` fields, which wrap [reactjs/react-autocomple](https://github.com/reactjs/react-autocomplete) to create a UI for [Caldera Forms magic tags](https://calderaforms.com/doc/using-magic-tags-caldera-forms/).
Expand Down

0 comments on commit c90a6d5

Please sign in to comment.