First CardUI commit
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
composes: rounded from "../theme.css";
|
||||
composes: depth from "../theme.css";
|
||||
overflow: hidden;
|
||||
width: 240px;
|
||||
}
|
||||
|
||||
.card > *:not(iframe, video, img, header, footer) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import styles from './Card.css';
|
||||
|
||||
export default function Card({ style, className = '', children }) {
|
||||
return <div className={`${styles.card} ${className}`} style={style}>{children}</div>;
|
||||
export default function Card({ style, className = '', onClick, children }) {
|
||||
return <div className={`${styles.card} ${className}`} style={style} onClick={onClick}>{children}</div>;
|
||||
}
|
||||
|
Reference in New Issue
Block a user