Skip to content
tcpsystemsui

Theme

Colour scheme
Accent
Density
Radius
Esc

Icon

Inline SVG icon on a 24 px grid, 1.5 stroke, currentColor. Decorative unless given a label.

beta

Try it

Svelte
<Icon name="check" label="Deployment complete" />

Examples

With text

Deployment complete
With text.svelte
<script lang="ts">
	import Icon from '@tcpsystems/ui/foundation/Icon';
	import Cluster from '@tcpsystems/ui/foundation/Cluster';
	import Text from '@tcpsystems/ui/foundation/Text';
</script>

<Cluster>
	<Icon name="check" />
	<Text as="span">Deployment complete</Text>
</Cluster>

Labelled status

Labelled status.svelte
<script lang="ts">
	import Icon from '@tcpsystems/ui/foundation/Icon';
	import Cluster from '@tcpsystems/ui/foundation/Cluster';
</script>

<Cluster>
	<Icon name="ok" label="All services healthy" />
	<Icon name="warn" label="Memory usage high" />
	<Icon name="danger" label="Deployment failed" />
</Cluster>

Navigation icons

Navigation icons.svelte
<script lang="ts">
	import Icon from '@tcpsystems/ui/foundation/Icon';
	import Cluster from '@tcpsystems/ui/foundation/Cluster';
</script>

<Cluster>
	<Icon name="search" label="Search" />
	<Icon name="menu" label="Menu" />
	<Icon name="filter" label="Filter" />
	<Icon name="download" label="Download" />
	<Icon name="external" label="Open externally" />
	<Icon name="arrow-right" label="Continue" />
</Cluster>

API

Import
import Icon from '@tcpsystems/ui/foundation/Icon';
PropTypeDefault
nameIconNamenone
label?stringnone