Icon

Icons.css are single-element, responsive and pure CSS icons. You can include spectre-icons.css located in the dist folder to your web <head> to have these CSS icons.

<script>
    import { Icon } from 'svelte-spectre'
</script>

<Icon icon="emoji" size="2x" color="primary" />

SVG

<script>
    import Basf from 'basf.svg'
</script>

<Icon size="4x" color="primary">
    <Basf />
    <!-- or -->
    <svelte:component this={Basf} />
    <!-- or -->
    <svg name="basf" />
    <!-- or -->
    <img src="basf.svg" />
</Icon>

Navigation

  arrow-up
  arrow-right
  arrow-down
  arrow-left
  upward
  forward
  downward
  back
  caret
  menu
  apps
  more-horiz
  more-vert

Action

  resize-horiz
  resize-vert
  plus
  minus
  cross
  check
  stop
  shutdown
  refresh
  search
  flag
  bookmark
  edit
  delete
  share
  download
  upload
  copy

Object

  mail
  people
  message
  photo
  time
  location
  link
  emoji
  home
  circle-check
  wifi
  audio
© 2022 — 2023 BASF SE

API Icon

<slot>: HTMLelement
<svg>, <img>
<svg> | <img>
icon: Icons = ""
Icon icons
arrow-up | arrow-right | arrow-down | arrow-left | upward | forward | downward | back | caret | menu | apps | more-horiz | more-vert | resize-horiz | resize-vert | plus | minus | cross | check | stop | shutdown | refresh | search | flag | bookmark | edit | delete | share | download | upload | copy | mail | people | message | photo | time | location | link | emoji | Metis | home | circle-check | wifi | audio
size: Size = "1x"
Icon size
1x | 2x | 3x | 4x
color: Color = ""
Icon color
initial | primary | secondary | dark | gray | light | success | warning | error