- Android
- iOS
- Web
Icon
Render an icon by name at a chosen size.
Engine API NIconnayan-ui/components
Pass a built-in icon name. For the full Lucide catalog, import NIcon from nayan-ui/icons/catalog.
Example.tsx
| Name | Type | Default | Details |
|---|---|---|---|
| name | string | Optional | A named icon supplied by the imported entry, or a literal Unicode symbol/emoji. |
| size | number | Optional | Square size in logical points. Default: 24. |
| color | string | Optional | CSS color; a `text-*` class takes precedence. Defaults to the current text color. |
| strokeWidth | number | Optional | Strokes the paths with round caps and joins instead of filling them, in viewBox units. |
| accessibilityLabel | string | Optional | |
| className | string | Optional | Supported Tailwind-style utilities, resolved entirely in Rust. See the engine README. |
| onPress | (() => void) | Optional |