mirror of
https://github.com/lemeow125/Ivy-Frontend.git
synced 2025-05-15 02:51:07 +08:00
Icons,Add&Delete Product, Buttons,Color Indicator
This commit is contained in:
parent
f45170d215
commit
62558a47f2
9 changed files with 289 additions and 57 deletions
15
src/components/Icons/AddIcon/AddIcon.tsx
Normal file
15
src/components/Icons/AddIcon/AddIcon.tsx
Normal file
|
@ -0,0 +1,15 @@
|
|||
import React from "react";
|
||||
|
||||
export interface props {
|
||||
size: number;
|
||||
color: string;
|
||||
}
|
||||
export default function AddIcon(props: props) {
|
||||
return (
|
||||
<div>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width={props.size + "vh"} height={props.size + "vh"} viewBox="0 0 24 24" fill="none" stroke={props.color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
||||
<path d="M12 5v14M5 12h14" />
|
||||
</svg>
|
||||
</div>
|
||||
);
|
||||
}
|
27
src/components/Icons/CancelIcon/CancelIcon.tsx
Normal file
27
src/components/Icons/CancelIcon/CancelIcon.tsx
Normal file
|
@ -0,0 +1,27 @@
|
|||
import React from "react";
|
||||
|
||||
export interface props {
|
||||
size: number;
|
||||
color: string;
|
||||
}
|
||||
|
||||
export default function CancelIcon(props: props) {
|
||||
return (
|
||||
<div>
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width={props.size + "vh"}
|
||||
height={props.size + "vh"}
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke={props.color}
|
||||
strokeWidth="2"
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
>
|
||||
<circle cx="12" cy="12" r="10" />
|
||||
<path d="M7.5 7.5l9 9M16.5 7.5l-9 9" />
|
||||
</svg>
|
||||
</div>
|
||||
);
|
||||
}
|
17
src/components/Icons/DeleteIcon/DeleteIcon.tsx
Normal file
17
src/components/Icons/DeleteIcon/DeleteIcon.tsx
Normal file
|
@ -0,0 +1,17 @@
|
|||
import React from "react";
|
||||
|
||||
export interface props {
|
||||
size: number;
|
||||
color: string;
|
||||
}
|
||||
export default function DeleteIcon(props: props) {
|
||||
return (
|
||||
<div>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width={props.size + "vh"} height={props.size + "vh"} viewBox="0 0 24 24" fill="none" stroke={props.color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
||||
<path d="M4 7h16M5 10v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2V10" />
|
||||
<path d="M10 10v-3a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v3" />
|
||||
<path d="M9 7h6" />
|
||||
</svg>
|
||||
</div>
|
||||
);
|
||||
}
|
19
src/components/Icons/EditIcon/EditIcon.tsx
Normal file
19
src/components/Icons/EditIcon/EditIcon.tsx
Normal file
|
@ -0,0 +1,19 @@
|
|||
import React from "react";
|
||||
|
||||
export interface props {
|
||||
size: number;
|
||||
color: string;
|
||||
}
|
||||
export default function EditIcon(props: props) {
|
||||
return (
|
||||
<div>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width={props.size + "vh"} height={props.size + "vh"} viewBox="0 0 24 24" fill="none" stroke={props.color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
||||
<path d="M3 17l-1.557 -4.386a2 2 0 0 1 1.923 -2.614h12.268a2 2 0 0 1 1.923 2.614l-1.558 4.386" />
|
||||
<path d="M15 6h6v6" />
|
||||
<path d="M10 21h5" />
|
||||
<path d="M12 17v-5" />
|
||||
<path d="M9 6h-6v15a2 2 0 0 0 2 2h15v-6" />
|
||||
</svg>
|
||||
</div>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue