summaryrefslogtreecommitdiffstats
path: root/packages/excalidraw/components/InlineIcon.tsx
blob: 75cc29d08d1fd4ce4a8fbc8c19ba69e9e6ad90bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export const InlineIcon = ({ icon }: { icon: React.ReactNode }) => {
  return (
    <span
      style={{
        width: "1em",
        margin: "0 0.5ex 0 0.5ex",
        display: "inline-block",
        lineHeight: 0,
        verticalAlign: "middle",
      }}
    >
      {icon}
    </span>
  );
};