mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-27 16:50:11 +02:00
styling fixes
This commit is contained in:
9
src/components/Stack.jsx
Normal file
9
src/components/Stack.jsx
Normal file
@@ -0,0 +1,9 @@
|
||||
const gaps = [0, '0.5rem', '1rem', '1.5rem', '3rem', '5rem'];
|
||||
|
||||
export const Stack = ({ gap = 0, children }) => {
|
||||
return (
|
||||
<div class="stack" style={{ gap: gaps[gap] }}>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
};
|
Reference in New Issue
Block a user