mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage
synced 2026-04-12 02:38:15 +00:00
chore: initial Untitled UI Vite scaffold with FontAwesome Pro
This commit is contained in:
22
src/components/foundations/dot-icon.tsx
Normal file
22
src/components/foundations/dot-icon.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import type { HTMLAttributes } from "react";
|
||||
|
||||
const sizes = {
|
||||
sm: {
|
||||
wh: 8,
|
||||
c: 4,
|
||||
r: 2.5,
|
||||
},
|
||||
md: {
|
||||
wh: 10,
|
||||
c: 5,
|
||||
r: 4,
|
||||
},
|
||||
};
|
||||
|
||||
export const Dot = ({ size = "md", ...props }: HTMLAttributes<HTMLOrSVGElement> & { size?: "sm" | "md" }) => {
|
||||
return (
|
||||
<svg width={sizes[size].wh} height={sizes[size].wh} viewBox={`0 0 ${sizes[size].wh} ${sizes[size].wh}`} fill="none" {...props}>
|
||||
<circle cx={sizes[size].c} cy={sizes[size].c} r={sizes[size].r} fill="currentColor" stroke="currentColor" />
|
||||
</svg>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user