1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-10-24 11:16:27 +02:00

Define typescript type for placeholders

This commit is contained in:
Phuoc Nguyen
2019-11-24 23:18:12 +07:00
parent 642e179699
commit 154a61de91
11 changed files with 50 additions and 14 deletions

View File

@@ -1,6 +1,10 @@
import React from 'react';
const Circle = ({ size = 16 }) => {
interface CircleProps {
size?: number;
}
const Circle: React.FC<CircleProps> = ({ size = 16 }) => {
return (
<div
className="bg-black-30 br-pill"