Skip to content
  • Android
  • iOS
  • Web

Icon

Render an icon by name at a chosen size.

Engine API NIconnayan-ui/components

Live examples

Pass a built-in icon name. For the full Lucide catalog, import NIcon from nayan-ui/icons/catalog.

Example.tsx

Attributes

NIcon attributes
NameTypeDefaultDetails
namestringOptionalA named icon supplied by the imported entry, or a literal Unicode symbol/emoji.
sizenumberOptionalSquare size in logical points. Default: 24.
colorstringOptionalCSS color; a `text-*` class takes precedence. Defaults to the current text color.
strokeWidthnumberOptionalStrokes the paths with round caps and joins instead of filling them, in viewBox units.
accessibilityLabelstringOptional
classNamestringOptionalSupported Tailwind-style utilities, resolved entirely in Rust. See the engine README.
onPress(() => void)Optional

Tags