Package Exports
- @smui/textfield
- @smui/textfield/bare.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@smui/textfield) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Svelte Material UI - Text Field
Text fields offer users an area to input text, numbers, files, etc.
See MDC Text Field for more information on API and Sass mixins.
See the Sass variable file for styling variables.
Installation
npm install --save-dev @smui/textfieldBasic Usage
<script>
import Textfield from '@smui/textfield'
export let name = '';
export let email = '';
export let comment = '';
</script>
<Textfield bind:value={name} label="Name" />
<br />
<Textfield type="email" bind:value={email} label="Email" input$autocomplete="email" />
<br />
<Textfield textarea bind:value={comment} label="Comment" />Demo
in action: https://sveltematerialui.com/demo/textfield
demo code: https://github.com/hperrin/svelte-material-ui/blob/master/site/src/routes/demo/textfield.svelte
Exports
todo...