LWT JavaScript API
    Preparing search index...
    • Create a single icon element programmatically.

      Parameters

      • name: string

        The Lucide icon name (e.g., 'check', 'x', 'plus')

      • options: { class?: string; color?: string; size?: number; strokeWidth?: number } = {}

        Optional configuration for the icon

      Returns SVGElement | null

      The created SVG element, or null if icon not found