add name to form components

This commit is contained in:
Sebastián Canio Barriga 2020-07-09 20:59:42 -04:00
commit 6fdb8d10ed
32 changed files with 82 additions and 26 deletions

View file

@ -6,7 +6,8 @@ export default { title: 'NumberInput', decorators: [withKnobs] };
export const Default = () => ({
Component,
props: {
id: 'number-input',
id: text('NumberInput id', 'number-input-id'),
name: text('NumberInput name', 'number-input-name'),
label: text('Label (label)', 'Number Input label'),
hideLabel: boolean('Hide label (hideLabel)', false),
min: number('Minimum value (min)', 0),