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:
committed by
Juan Picado @jotadeveloper
parent
ade548a7da
commit
2bc49f3ab7
10
src/muiComponents/Card/Card.tsx
Normal file
10
src/muiComponents/Card/Card.tsx
Normal 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;
|
||||
1
src/muiComponents/Card/index.ts
Normal file
1
src/muiComponents/Card/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { default } from './Card';
|
||||
Reference in New Issue
Block a user