docs(password-input): add custom tooltip example

This commit is contained in:
Eric Y Liu 2021-03-05 13:59:53 -08:00
commit 13276999d0

View file

@ -7,6 +7,12 @@
<PasswordInput labelText="Password" placeholder="Enter password..." /> <PasswordInput labelText="Password" placeholder="Enter password..." />
### Custom tooltip alignment
Customize the tooltip alignment and position of the visibility toggle through the `tooltipAlignment` and `tooltipPosition` props.
<PasswordInput tooltipAlignment="start" tooltipPosition="left" labelText="Password" placeholder="Enter password..." />
### Password is visible ### Password is visible
Set prop `type` to `"text"` to toggle password visibility. Set prop `type` to `"text"` to toggle password visibility.