@cuvp1225/tango-mail
Version:
react mail components for tango
18 lines (17 loc) • 772 B
JavaScript
import { __rest } from "tslib";
import { defineComponent } from '@music163/tango-boot';
import React from 'react';
import cx from 'classnames';
import { Placeholder } from '../placeholder';
function CardView(_a) {
var { className, style, children } = _a, props = __rest(_a, ["className", "style", "children"]);
return (React.createElement("div", Object.assign({}, props, { style: style, className: cx('min-w-0 m-1 rounded-md border-solid border border-slate-300 overflow-hidden bg-white', className) }), children));
}
export const Card = defineComponent(CardView, {
name: 'Card',
designerConfig: {
defaultProps: {
children: React.createElement(Placeholder, { text: "\u62D6\u62FD\u5185\u5BB9\u5230\u6B64\u5904" }),
},
},
});