@zohodesk/components
Version:
Dot UI is a customizable React component library built to deliver a clean, accessible, and developer-friendly UI experience. It offers a growing set of reusable components designed to align with modern design systems and streamline application development
28 lines • 909 B
JavaScript
import PropTypes from 'prop-types';
export const propTypes = {
checked: PropTypes.bool,
dataId: PropTypes.string,
dataSelectorId: PropTypes.string,
disableTitle: PropTypes.string,
disabled: PropTypes.bool,
id: PropTypes.string.isRequired,
isReadOnly: PropTypes.bool,
labelPalette: PropTypes.oneOf(['default', 'primary', 'secondary', 'danger', 'mandatory']),
labelSize: PropTypes.oneOf(['small', 'medium', 'large']),
name: PropTypes.string,
onChange: PropTypes.func,
size: PropTypes.oneOf(['small', 'medium']),
text: PropTypes.string,
title: PropTypes.string,
value: PropTypes.bool,
customClass: PropTypes.shape({
customSwitchWrap: PropTypes.string,
customSwitch: PropTypes.string,
customSwitchSize: PropTypes.string,
customLabel: PropTypes.string
}),
customProps: PropTypes.shape({
SwitchProps: PropTypes.object,
LabelProps: PropTypes.object
})
};