Icon

An icon is a small visual element, like a symbol, that represents certain functions, features, or types of content within a user interface.

import {Icon} from "@qualcomm-ui/react/icon"

Overview

QUI components use icons from Lucide, an open-source fork of Feather Icons.

Many components like the Button and Icon Button have built-in support for Lucide Icons.

Examples

Showcase

<Icon icon={ExternalLink} size="lg" />
<Icon icon={Search} size="lg" />
<Icon icon={Eye} size="lg" />

Sizes

Size can be customized using the size input. There are five available values: xs, sm, md, lg, xl. Should you need more control over the rendered size, supply a number instead which will be converted to pixels.

API

<Icon>

The properties of the <svg> element also apply.

Renders a lucide-react icon <svg> element.
PropTypeDefault
lucide-react icon.
LucideIcon
The size of the icon. If supplied as a number, the value will be applied as px. Otherwise, the string value of the property will apply.
| 'xs'
| 'sm'
| 'md'
| 'lg'
| 'xl'
| string
| number
'md'
Type
LucideIcon
Description
lucide-react icon.
Type
| 'xs'
| 'sm'
| 'md'
| 'lg'
| 'xl'
| string
| number
Description
The size of the icon. If supplied as a number, the value will be applied as px. Otherwise, the string value of the property will apply.