mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-10-24 19:26:26 +02:00
Define typescript type for placeholders
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import React from 'react';
|
||||
|
||||
const Rectangle = ({ height = 8 }) => {
|
||||
interface RectangleProps {
|
||||
height?: number;
|
||||
}
|
||||
|
||||
const Rectangle: React.FC<RectangleProps> = ({ height = 8 }) => {
|
||||
return (
|
||||
<div
|
||||
className="w-100 bg-black-30 br1"
|
||||
|
||||
Reference in New Issue
Block a user