@zohodesk/components
Version:
In this Package, we Provide Some Basic Components to Build Web App
26 lines • 910 B
JavaScript
import PropTypes from 'prop-types';
export const propTypes = {
dataId: PropTypes.string,
dataSelectorId: PropTypes.string,
initial: PropTypes.string,
name: PropTypes.string.isRequired,
needBorder: PropTypes.bool,
needTitle: PropTypes.bool,
onClick: PropTypes.func,
palette: PropTypes.oneOf(['primary', 'secondary', 'info', 'default']),
shape: PropTypes.oneOf(['circle', 'square']),
size: PropTypes.oneOf(['xxsmall', 'small', 'xsmall', 'medium', 'xmedium', 'large', 'xlarge']),
src: PropTypes.string,
textPalette: PropTypes.oneOf(['white', 'black']),
title: PropTypes.string,
customClass: PropTypes.string,
alternateSrc: PropTypes.string,
borderOnActive: PropTypes.bool,
borderOnHover: PropTypes.bool,
customProps: PropTypes.shape({
AvatarProps: PropTypes.object
}),
isAnimate: PropTypes.bool,
needInnerBorder: PropTypes.bool,
needDefaultBorder: PropTypes.bool
};