-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add minLength of 3 to make required work
- Loading branch information
1 parent
216c59e
commit fb927b6
Showing
2 changed files
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 7 additions & 2 deletions
9
packages/dnb-eufemia/src/extensions/forms/Field/PhoneNumber/stories/PhoneNumber.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
import { Field } from '../../..' | ||
import { Field, Form } from '../../..' | ||
|
||
export default { | ||
title: 'Eufemia/Forms/PhoneNumber', | ||
} | ||
|
||
export function PhoneNumber() { | ||
return <Field.PhoneNumber /> | ||
return ( | ||
<Form.Handler onSubmit={console.log}> | ||
<Field.PhoneNumber required path="/phoneNumber" /> | ||
<Form.SubmitButton top /> | ||
</Form.Handler> | ||
) | ||
} |