-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(components): add Input & Select label props (closes #129)
- Loading branch information
Showing
8 changed files
with
68 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,7 +126,7 @@ $ yarn add sveltejs-forms | |
let:isSubmitting | ||
let:isValid | ||
> | ||
<Input name="user.email" placeholder="Email" /> <!-- nested field --> | ||
<Input name="user.email" label="Email" placeholder="e.g. [email protected]" /> <!-- nested field --> | ||
<Input name="password" type="password" placeholder="Password" /> | ||
<Select name="language" options={langOptions} /> | ||
<Choice name="os" options={osOptions} multiple /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,13 +79,16 @@ | |
on:reset={handleReset} | ||
let:isSubmitting | ||
let:isValid> | ||
<Input name="user.email" placeholder="Email" /> | ||
<Input | ||
name="user.email" | ||
label="Email Address" | ||
placeholder="e.g. [email protected]" /> | ||
<Input | ||
name="user.password" | ||
type="password" | ||
placeholder="Password" | ||
multiline /> | ||
<Select name="user.language" options={langOptions} /> | ||
<Select name="user.language" label="Language" options={langOptions} /> | ||
<Choice name="user.os" options={osOptions} multiple /> | ||
|
||
<button type="reset">Reset</button> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters