mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
test: add TS types
This commit is contained in:
parent
302e82d6a2
commit
eed617433b
126 changed files with 3378 additions and 226 deletions
34
tests/TextInput.test.svelte
Normal file
34
tests/TextInput.test.svelte
Normal file
|
@ -0,0 +1,34 @@
|
|||
<script lang="ts">
|
||||
import { TextInput, TextInputSkeleton } from "../types";
|
||||
</script>
|
||||
|
||||
<TextInput labelText="User name" placeholder="Enter user name..." />
|
||||
|
||||
<TextInput
|
||||
labelText="User name"
|
||||
helperText="Your user name is associated with your email"
|
||||
placeholder="Enter user name..."
|
||||
/>
|
||||
|
||||
<TextInput hideLabel labelText="User name" placeholder="Enter user name..." />
|
||||
|
||||
<TextInput light labelText="User name" placeholder="Enter user name..." />
|
||||
|
||||
<TextInput inline labelText="User name" placeholder="Enter user name..." />
|
||||
|
||||
<TextInput size="xl" labelText="User name" placeholder="Enter user name..." />
|
||||
|
||||
<TextInput size="sm" labelText="User name" placeholder="Enter user name..." />
|
||||
|
||||
<TextInput
|
||||
invalid
|
||||
invalidText="User name is already taken. Please try another."
|
||||
labelText="User name"
|
||||
placeholder="Enter user name..."
|
||||
/>
|
||||
|
||||
<TextInput disabled labelText="User name" placeholder="Enter user name..." />
|
||||
|
||||
<TextInputSkeleton />
|
||||
|
||||
<TextInputSkeleton hideLabel />
|
Loading…
Add table
Add a link
Reference in a new issue