-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(input field): render icon correctly
- Loading branch information
1 parent
5812f64
commit cbcc84b
Showing
4 changed files
with
42 additions
and
6 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Component, State } from '@stencil/core'; | ||
|
||
@Component({ | ||
tag: 'limel-example-input-field-icon', | ||
shadow: true, | ||
}) | ||
export class InputFieldIconExample { | ||
@State() | ||
private value; | ||
|
||
public render() { | ||
return ( | ||
<limel-input-field | ||
label="Email address" | ||
type="email" | ||
value={this.value} | ||
trailingIcon="filled_message" | ||
onChange={event => { | ||
this.value = event.detail; | ||
}} | ||
onAction={() => { | ||
console.log(`sending email to ${this.value}`); | ||
}} | ||
/> | ||
); | ||
} | ||
} |