Home Reference Source Repository

src/Card.js

/**
 * @file Card
 * @author leon([email protected])
 */

import React from 'react';
import {create} from 'melon-core/classname/cxBuilder';

const cx = create('Card');

/* eslint-disable fecs-prefer-class */
export default function Card(props) {

    const {children} = props;

    return (
        <div className={cx(props).build()}>
            {children}
        </div>
    );

}
/* eslint-enable fecs-prefer-class */