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