refactor: super icons (#1974)
This commit is contained in:
15
packages/blocks-editor/src/Lexical/Theme/IconComponent.tsx
Normal file
15
packages/blocks-editor/src/Lexical/Theme/IconComponent.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
export const IconComponent = ({
|
||||
children,
|
||||
size = 20,
|
||||
paddingTop = 0,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
size?: number;
|
||||
paddingTop?: number;
|
||||
}) => {
|
||||
return (
|
||||
<span className="svg-icon" style={{width: size, height: size, paddingTop}}>
|
||||
{children}
|
||||
</span>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user