Skip to content

Commit 16c414e

Browse files
committed
Merge branch 'Eradash-Add_usage_for_textfield'
2 parents 973cf96 + 5b71210 commit 16c414e

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

packages/textfield/README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,21 @@ npm install --save-dev @smui/textfield
1414

1515
# Basic Usage
1616

17-
todo...
17+
```html
18+
<script>
19+
import Textfield from '@smui/textfield'
20+
21+
export let name = '';
22+
export let email = '';
23+
export let comment = '';
24+
</script>
25+
26+
<Textfield bind:value={name} label="Name" />
27+
<br />
28+
<Textfield type="email" bind:value={email} label="Email" input$autocomplete="email">
29+
<br />
30+
<Textfield textarea bind:value={comment} label="Comment" />
31+
```
1832

1933
# Demo
2034

0 commit comments

Comments
 (0)