sterling-svelte  1.0.4
A modern, accessible, lightweight UI component library for Svelte.

Input

A styled HTML input with an optional label.

Props

HTMLInputElement props are included.

/** Additional class names to apply. */
export let variant: string = '';

Events

HTMLInputElement events are included.

Methods

The following HTMLInputElement methods are included:

  • blur
  • click
  • focus
  • select
  • setRangeText
  • setSelectionRange

Anatomy

<label class="sterling-input-label">
  <slot {disabled} {value} {variant} />
</label>
<div class="sterling-input">
  <input />
</div>