carbon-components-svelte/tests/PasswordInput.test.svelte
Gregor Wassmann a583453436
chore: v11 PasswordInput
Size `xl` changed to `lg`. For better compatibility with existing codebases size `xl` is still supported.
2024-01-03 11:28:42 -05:00

30 lines
819 B
Svelte

<script lang="ts">
import { PasswordInput } from "../types";
</script>
<PasswordInput labelText="Password" placeholder="Enter password..." />
<PasswordInput
labelText="Password"
type="text"
placeholder="Enter password..."
value="as_lta0890sdfpo__!9901"
on:paste
/>
<PasswordInput hideLabel labelText="Password" placeholder="Enter password..." />
<PasswordInput light labelText="Password" placeholder="Enter password..." />
<PasswordInput size="lg" labelText="Password" placeholder="Enter password..." />
<PasswordInput size="sm" labelText="Password" placeholder="Enter password..." />
<PasswordInput
invalid
invalidText="Incorrect user name or password."
labelText="Password"
placeholder="Enter password..."
/>
<PasswordInput disabled labelText="Password" placeholder="Enter password..." />