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)