mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-21 08:39:22 +01:00
* Add useIconComponent, lucide-react * Add concept useIconComponent * add useIconComponents to packages * Add icon component * Add icon component * Add tests for react packages * Reset changes in icons * Add types * Add support for Icon components in Lucide Vue Next * update tests * Update tests * Enable Svelte component * Fix lucide-react-native tests * Update Solid package * update snapshots * Add docs * add docs * Update tests * Formatting * Formatting * Update package lock * Remove `useIconComponent` * Update guides * Update exports preact and solid package * Formatting * Format createIcons.ts * Add lucide lab repo link in docs
92 lines
1.8 KiB
Plaintext
92 lines
1.8 KiB
Plaintext
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
|
|
exports[`Using lucide icon components > should adjust the size, stroke color and stroke width 1`] = `
|
|
<svg xmlns="http://www.w3.org/2000/svg"
|
|
width="48"
|
|
height="48"
|
|
viewbox="0 0 24 24"
|
|
fill="none"
|
|
stroke="red"
|
|
stroke-width="4"
|
|
stroke-linecap="round"
|
|
stroke-linejoin="round"
|
|
class="lucide lucide-grid3x3"
|
|
>
|
|
<rect width="18"
|
|
height="18"
|
|
x="3"
|
|
y="3"
|
|
rx="2"
|
|
>
|
|
</rect>
|
|
<path d="M3 9h18">
|
|
</path>
|
|
<path d="M3 15h18">
|
|
</path>
|
|
<path d="M9 3v18">
|
|
</path>
|
|
<path d="M15 3v18">
|
|
</path>
|
|
</svg>
|
|
`;
|
|
|
|
exports[`Using lucide icon components > should not scale the strokeWidth when absoluteStrokeWidth is set 1`] = `
|
|
<svg xmlns="http://www.w3.org/2000/svg"
|
|
width="48"
|
|
height="48"
|
|
viewbox="0 0 24 24"
|
|
fill="none"
|
|
stroke="red"
|
|
stroke-width="1"
|
|
stroke-linecap="round"
|
|
stroke-linejoin="round"
|
|
class="lucide lucide-grid3x3"
|
|
>
|
|
<rect width="18"
|
|
height="18"
|
|
x="3"
|
|
y="3"
|
|
rx="2"
|
|
>
|
|
</rect>
|
|
<path d="M3 9h18">
|
|
</path>
|
|
<path d="M3 15h18">
|
|
</path>
|
|
<path d="M9 3v18">
|
|
</path>
|
|
<path d="M15 3v18">
|
|
</path>
|
|
</svg>
|
|
`;
|
|
|
|
exports[`Using lucide icon components > should render an component 1`] = `
|
|
<svg xmlns="http://www.w3.org/2000/svg"
|
|
width="24"
|
|
height="24"
|
|
viewbox="0 0 24 24"
|
|
fill="none"
|
|
stroke="currentColor"
|
|
stroke-width="2"
|
|
stroke-linecap="round"
|
|
stroke-linejoin="round"
|
|
class="lucide lucide-grid3x3"
|
|
>
|
|
<rect width="18"
|
|
height="18"
|
|
x="3"
|
|
y="3"
|
|
rx="2"
|
|
>
|
|
</rect>
|
|
<path d="M3 9h18">
|
|
</path>
|
|
<path d="M3 15h18">
|
|
</path>
|
|
<path d="M9 3v18">
|
|
</path>
|
|
<path d="M15 3v18">
|
|
</path>
|
|
</svg>
|
|
`;
|