1
0
mirror of https://github.com/SomboChea/ui synced 2026-01-17 16:45:49 +07:00

fix(162): added forwardRef Card (#216)

This commit is contained in:
Priscila Oliveira
2019-10-26 08:44:25 +02:00
committed by Juan Picado @jotadeveloper
parent ade548a7da
commit 2bc49f3ab7
6 changed files with 15 additions and 4 deletions

View File

@@ -0,0 +1,10 @@
import React, { forwardRef } from 'react';
import { default as MaterialUICard, CardProps } from '@material-ui/core/Card';
type CardRef = HTMLDivElement;
const Card = forwardRef<CardRef, CardProps>(function Card(props, ref) {
return <MaterialUICard {...props} ref={ref} />;
});
export default Card;

View File

@@ -0,0 +1 @@
export { default } from './Card';