---
url: https://react-ui.bas.dev/display/icon.md
---
# Icon

One Lucide icon, sized in pixels, at the library's stroke width of 1.75. Icons come in 12, 14, 16 and 20 pixels.

```tsx
import { Icon } from '@basmilius/react-ui';
import { Folder } from 'lucide-react';

<Icon icon={Folder} size={14} />;
```

An icon is decorative. It is hidden from screen readers, and the name sits on the button or the label next to it. It is vertically centered on the text beside it, where an inline SVG would otherwise sit on the baseline and drop below the words.

Use 16 on its own and in a 32 pixel button, 14 next to `text-sm` or in a menu row, 12 in the smallest controls, and 20 in an empty state.

## Props

| Prop | Type | Default |
| --- | --- | --- |
| `icon` | `LucideIcon` | Required. |
| `size` | `number` | `16` |
| `className` | `string` | |
| `ref` | `Ref<SVGSVGElement>` | |

`IconProps` is an exported type.
