@tarojsx/ui
Version:
We reinvents the UI for Taro3+
15 lines • 646 B
JavaScript
import React from 'react';
import classNames from 'classnames';
import { View } from '@tarojs/components';
import '../style/Tag.scss';
export const Tag = props => {
const { className, style, children, type, size = 'normal', circle, disabled, active, onClick } = props;
return (React.createElement(View, { className: classNames('at-tag', {
[`at-tag--${size}`]: size,
[`at-tag--${type}`]: type,
'at-tag--disabled': disabled,
'at-tag--active': active,
'at-tag--circle': circle,
}, className), style: style, onClick: onClick }, children));
};
//# sourceMappingURL=Tag.js.map