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

Button

An interactive element activated to perform an action.

Code
<script lang="ts">
  import { Button } from '@geoffcox/sterling-svelte';
</script>

<Button>
  <SterlingIcon/>sterling-svelte
</Button>

Considerations

  • The type prop default is 'button' rather than 'submit'
  • Includes HTMLButtonElement props, events, and methods.

Anatomy

button (<button>)
  children (Snippet)