-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(components): add input variants
- Loading branch information
Showing
2 changed files
with
66 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,46 @@ export const LabelAndHelperText = (args: ToggleProps) => ( | |
</div> | ||
</> | ||
) | ||
export const Variants = (args: ToggleProps) => ( | ||
<> | ||
<div className="mb-10"> | ||
<Text type='paragraph' size={2}>Default</Text> | ||
<Input placeholder='[email protected]' label='Email' description={ | ||
<> | ||
<HiOutlineQuestionMarkCircle className='w-4 h-4'/> | ||
Helping text for user | ||
</> | ||
}></Input> | ||
</div> | ||
<div className="mb-10"> | ||
<Text type='paragraph' size={2}>Danger</Text> | ||
<Input variant='danger' placeholder='[email protected]' label='Email' description={ | ||
<> | ||
<HiOutlineQuestionMarkCircle className='w-4 h-4'/> | ||
Helping text for user | ||
</> | ||
}></Input> | ||
</div> | ||
<div className="mb-10"> | ||
<Text type='paragraph' size={2}>Warning</Text> | ||
<Input variant='warning' placeholder='[email protected]' label='Email' description={ | ||
<> | ||
<HiOutlineQuestionMarkCircle className='w-4 h-4'/> | ||
Helping text for user | ||
</> | ||
}></Input> | ||
</div> | ||
<div className="mb-10"> | ||
<Text type='paragraph' size={2}>Success</Text> | ||
<Input variant='success' placeholder='[email protected]' label='Email' description={ | ||
<> | ||
<HiOutlineQuestionMarkCircle className='w-4 h-4'/> | ||
Helping text for user | ||
</> | ||
}></Input> | ||
</div> | ||
</> | ||
) | ||
export const InputGroup = (args: ToggleProps) => ( | ||
<> | ||
</> | ||
|