@zohodesk/components
Version:
In this Package, we Provide Some Basic Components to Build Web App
27 lines • 986 B
JavaScript
import PropTypes from 'prop-types';
export const propTypes = {
children: PropTypes.node,
dataId: PropTypes.string,
dataSelectorId: PropTypes.string,
disabled: PropTypes.bool,
getRef: PropTypes.func,
isBold: PropTypes.bool,
needAppearance: PropTypes.bool,
onClick: PropTypes.func,
palette: PropTypes.oneOf(['plainPrimary', 'plainSecondary', 'primary', 'primaryFilled', 'danger', 'dangerFilled', 'secondary', 'secondaryFilled', 'successFilled', 'info', 'tertiaryFilled']),
rounded: PropTypes.bool,
size: PropTypes.oneOf(['small', 'medium', 'large', 'xlarge']),
status: PropTypes.oneOf(['loading', 'success', 'none']),
text: PropTypes.string,
title: PropTypes.string,
customClass: PropTypes.shape({
customButton: PropTypes.string,
customStatus: PropTypes.string,
customStatusSize: PropTypes.string
}),
customStyle: PropTypes.object,
customProps: PropTypes.object,
id: PropTypes.string,
a11y: PropTypes.object
};
export default propTypes;