Input
An interactive element to accept data from the user.
Code
<script lang="ts">
import { Input } from '@geoffcox/sterling-svelte';
</script>
<Input bind:value />
Considerations
- Prefer using the Label component rather than the label produced by providing default slot content.
- Includes HTMLInputElement props, events, and methods.
Anatomy
label (<label>)
children (Snippet)
input container (<div>)
input (<input>)