-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Allow various types of text input (#1259)
Co-authored-by: Ruben Sibon <[email protected]> Co-authored-by: Aram <[email protected]>
- Loading branch information
1 parent
e5f8d58
commit dc1e5d5
Showing
7 changed files
with
208 additions
and
9 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
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
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
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
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
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
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 |
---|---|---|
|
@@ -12,7 +12,6 @@ const meta = { | |
args: { | ||
disabled: false, | ||
invalid: false, | ||
value: '', | ||
}, | ||
argTypes: { | ||
disabled: { | ||
|
@@ -33,20 +32,51 @@ type Story = StoryObj<typeof meta> | |
|
||
export const Default: Story = {} | ||
|
||
export const Password: Story = { | ||
args: { | ||
minLength: 8, | ||
type: 'password', | ||
value: 'password', | ||
}, | ||
} | ||
|
||
export const EmailAddress: Story = { | ||
args: { | ||
type: 'email', | ||
value: '[email protected]', | ||
}, | ||
} | ||
|
||
export const WebAddress: Story = { | ||
args: { | ||
type: 'url', | ||
value: 'https://designsystem.amsterdam/', | ||
}, | ||
} | ||
|
||
export const PhoneNumber: Story = { | ||
args: { | ||
type: 'tel', | ||
value: '14020', | ||
}, | ||
} | ||
|
||
export const Placeholder: Story = { | ||
args: { | ||
placeholder: 'E-mail', | ||
placeholder: 'Placeholder text', | ||
}, | ||
} | ||
|
||
export const Invalid: Story = { | ||
args: { | ||
invalid: true, | ||
value: 'Invalid value', | ||
}, | ||
} | ||
|
||
export const Disabled: Story = { | ||
args: { | ||
disabled: true, | ||
value: 'Disabled input', | ||
}, | ||
} |