mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-10-22 10:16:08 +02:00
17 lines
311 B
TypeScript
17 lines
311 B
TypeScript
import React from 'react';
|
|
|
|
interface RectangleProps {
|
|
height?: number;
|
|
}
|
|
|
|
const Rectangle: React.FC<RectangleProps> = ({ height = 8 }) => {
|
|
return (
|
|
<div
|
|
className="w-100 bg-black-30 br1"
|
|
style={{ height: `${height}px` }}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default Rectangle;
|