Skip to main content
Every icon in the Swish UI can be replaced with a custom SVG. Pass a map of icon keys to SVG strings under ui.icons.
Omitted keys use the built-in SVG. The custom value must be a valid SVG string that the browser can render inline. Each SVG is sanitised before it renders: scripts, event handlers, javascript: links and elements that are not SVG are removed. If nothing drawable is left, the built-in icon shows instead.
Use stroke="currentColor" in your SVGs so icons inherit the surrounding text color and respond to design token color changes.

Available icons

Standard icons

These icons appear throughout the UI in buttons, headers, menus, and cards. These larger icons appear in the drawer footer navigation bar. They are used when showIcons is enabled on the drawer-footer section.

Further reading