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