Icon
Inline SVG icon on a 24 px grid, 1.5 stroke, currentColor. Decorative unless given a label.
beta
Try it
<Icon name="check" label="Deployment complete" />Examples
With text
Deployment complete
<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
<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
<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 Icon from '@tcpsystems/ui/foundation/Icon';| Prop | Type | Default |
|---|---|---|
name | IconName | none |
label? | string | none |