feat: Add Spacer component
This commit is contained in:
parent
fc6d02bef7
commit
148b59a082
15
src/components/Spacer/index.jsx
Normal file
15
src/components/Spacer/index.jsx
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
function Spacer({ width = 0, height = 0 }) {
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
display: 'block',
|
||||||
|
width,
|
||||||
|
height,
|
||||||
|
minWidth: width,
|
||||||
|
minHeight: height,
|
||||||
|
}}
|
||||||
|
></div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Spacer;
|
Loading…
Reference in New Issue
Block a user