mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
docs(password-input): add custom tooltip example
This commit is contained in:
parent
b357d73155
commit
13276999d0
1 changed files with 6 additions and 0 deletions
|
@ -7,6 +7,12 @@
|
|||
|
||||
<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
|
||||
|
||||
Set prop `type` to `"text"` to toggle password visibility.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue