mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-17 11:11:25 +00:00
test: add TS types
This commit is contained in:
parent
302e82d6a2
commit
eed617433b
126 changed files with 3378 additions and 226 deletions
29
tests/PasswordInput.test.svelte
Normal file
29
tests/PasswordInput.test.svelte
Normal file
|
@ -0,0 +1,29 @@
|
|||
<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"
|
||||
/>
|
||||
|
||||
<PasswordInput hideLabel labelText="Password" placeholder="Enter password..." />
|
||||
|
||||
<PasswordInput light labelText="Password" placeholder="Enter password..." />
|
||||
|
||||
<PasswordInput size="xl" 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..." />
|
Loading…
Add table
Add a link
Reference in a new issue