95 lines
3.7 KiB
JavaScript
95 lines
3.7 KiB
JavaScript
// Line icons in the lucide style: 24 grid, 1.5 stroke, currentColor.
|
|
function Line({ size = 16, children, ...rest }) {
|
|
return (
|
|
<svg
|
|
width={size}
|
|
height={size}
|
|
viewBox="0 0 24 24"
|
|
fill="none"
|
|
stroke="currentColor"
|
|
strokeWidth="1.5"
|
|
strokeLinecap="round"
|
|
strokeLinejoin="round"
|
|
aria-hidden="true"
|
|
{...rest}
|
|
>
|
|
{children}
|
|
</svg>
|
|
)
|
|
}
|
|
|
|
export const DownloadIcon = (p) => (
|
|
<Line {...p}><path d="M12 15V3" /><path d="m7 10 5 5 5-5" /><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" /></Line>
|
|
)
|
|
|
|
export const LockIcon = (p) => (
|
|
<Line {...p}><rect x="3" y="11" width="18" height="11" rx="2" /><path d="M7 11V7a5 5 0 0 1 10 0v4" /></Line>
|
|
)
|
|
|
|
export const LayersIcon = (p) => (
|
|
<Line {...p}>
|
|
<path d="m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z" />
|
|
<path d="m2 12 9.17 4.17a2 2 0 0 0 1.66 0L22 12" />
|
|
<path d="m2 17 9.17 4.17a2 2 0 0 0 1.66 0L22 17" />
|
|
</Line>
|
|
)
|
|
|
|
export const CheckIcon = (p) => (
|
|
<Line {...p}><path d="M20 6 9 17l-5-5" /></Line>
|
|
)
|
|
|
|
export const HeartIcon = (p) => (
|
|
<Line {...p}><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z" /></Line>
|
|
)
|
|
|
|
export const MessageIcon = (p) => (
|
|
<Line {...p}><path d="M7.9 20A9 9 0 1 0 4 16.1L2 22Z" /></Line>
|
|
)
|
|
|
|
export const ChevronDownIcon = (p) => (
|
|
<Line {...p}><path d="m6 9 6 6 6-6" /></Line>
|
|
)
|
|
|
|
export const FolderIcon = (p) => (
|
|
<Line {...p}><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" /></Line>
|
|
)
|
|
|
|
export const FileIcon = (p) => (
|
|
<Line {...p}><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" /><path d="M14 2v4a2 2 0 0 0 2 2h4" /></Line>
|
|
)
|
|
|
|
export const XIcon = (p) => (
|
|
<Line {...p}><path d="M18 6 6 18" /><path d="m6 6 12 12" /></Line>
|
|
)
|
|
|
|
export const GlobeIcon = (p) => (
|
|
<Line {...p}><circle cx="12" cy="12" r="10" /><path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" /><path d="M2 12h20" /></Line>
|
|
)
|
|
|
|
export const CpuIcon = (p) => (
|
|
<Line {...p}><rect x="4" y="4" width="16" height="16" rx="2" /><rect x="9" y="9" width="6" height="6" rx="1" /><path d="M15 2v2M15 20v2M2 15h2M2 9h2M20 15h2M20 9h2M9 2v2M9 20v2" /></Line>
|
|
)
|
|
|
|
export const DriveIcon = (p) => (
|
|
<Line {...p}><path d="M22 12H2" /><path d="M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z" /><path d="M6 16h.01M10 16h.01" /></Line>
|
|
)
|
|
|
|
export const ServerIcon = (p) => (
|
|
<Line {...p}><rect x="2" y="2" width="20" height="8" rx="2" /><rect x="2" y="14" width="20" height="8" rx="2" /><path d="M6 6h.01M6 18h.01" /></Line>
|
|
)
|
|
|
|
export const PuzzleIcon = (p) => (
|
|
<Line {...p}><path d="M15.39 4.39a1 1 0 0 0 1.68-.47 2.5 2.5 0 1 1 3.01 3.01 1 1 0 0 0-.47 1.68l1.69 1.69a2.4 2.4 0 0 1 0 3.4l-1.61 1.61a.98.98 0 0 1-.84.28c-.47-.07-.8-.48-.97-.92a2.5 2.5 0 1 0-3.21 3.21c.44.17.85.5.92.97a.98.98 0 0 1-.28.84l-1.61 1.61a2.4 2.4 0 0 1-3.4 0L8.3 19.61a1 1 0 0 0-1.68.47 2.5 2.5 0 1 1-3.01-3.01 1 1 0 0 0 .47-1.68L2.39 13.7a2.4 2.4 0 0 1 0-3.4l1.61-1.61a.98.98 0 0 1 .84-.28c.47.07.8.48.97.92a2.5 2.5 0 1 0 3.21-3.21c-.44-.17-.85-.5-.92-.97a.98.98 0 0 1 .28-.84l1.61-1.61a2.4 2.4 0 0 1 3.4 0z" /></Line>
|
|
)
|
|
|
|
export const PhoneIcon = (p) => (
|
|
<Line {...p}><rect x="6" y="2" width="12" height="20" rx="2.5" /><path d="M11 18h2" /></Line>
|
|
)
|
|
|
|
export const PlusMinus = ({ open }) => (
|
|
<svg width="16" height="16" viewBox="0 0 16 16" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" aria-hidden="true">
|
|
<path d="M2.5 8h11" />
|
|
<path d="M8 2.5v11" className={`pm-v ${open ? 'is-open' : ''}`} />
|
|
</svg>
|
|
)
|