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,11 @@
|
||||
import React from 'react';
|
||||
|
||||
const Triangle = ({ size = 16, corner = 'tl' }) => {
|
||||
interface TriangleProps {
|
||||
corner?: string;
|
||||
size?: number;
|
||||
}
|
||||
|
||||
const Triangle: React.FC<TriangleProps> = ({ size = 16, corner = 'tl' }) => {
|
||||
let bw = '';
|
||||
let bc = '';
|
||||
switch (corner) {
|
||||
|
||||
Reference in New Issue
Block a user