mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-13 13:48:26 +00:00
* Add Lucide React integration tests * Apply batched suggestions from code review Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Remove redundant icon comparison test Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * test(lucide-react): fix browser locator markup assertions --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
33 lines
845 B
TypeScript
33 lines
845 B
TypeScript
import { Camera, Droplet, Edit2, House, LucideProvider, Pen } from 'lucide-react';
|
|
import { DynamicIcon } from 'lucide-react/dynamic';
|
|
|
|
export default function IconShowcase() {
|
|
return (
|
|
<main aria-label="Lucide integration">
|
|
<Camera data-testid="static-icon" />
|
|
<Droplet
|
|
data-testid="custom-icon"
|
|
className="consumer-icon"
|
|
color="red"
|
|
size={48}
|
|
strokeWidth={4}
|
|
absoluteStrokeWidth
|
|
/>
|
|
<LucideProvider
|
|
color="purple"
|
|
size={32}
|
|
strokeWidth={3}
|
|
>
|
|
<House data-testid="provider-icon" />
|
|
</LucideProvider>
|
|
<Pen data-testid="alias-icon" />
|
|
<Edit2 data-testid="canonical-icon" />
|
|
<DynamicIcon
|
|
aria-label="Dynamic circle"
|
|
data-testid="dynamic-icon"
|
|
name="circle"
|
|
/>
|
|
</main>
|
|
);
|
|
}
|