How to use the default function from prop-types
Find comprehensive JavaScript prop-types.default code examples handpicked from public code repositorys.
592 593 594 595 596 597 598
exports.MultiCheckout = MultiCheckout; MultiCheckout.propTypes = { /** * UI Component, this must be containt all graphic elements and use parent props */ UIComponent: _propTypes.default.elementType };
1
2
1
422 423 424 425 426 427 428 429 430 431
apiKey: _propTypes.default.string.isRequired, /** * Function to get address from GPS * @param {object} address New address */ onAddress: _propTypes.default.func, /** * Function to get error from GPS * @param {object} address New address */
1
1
1
+ 29 other calls in file
969 970 971 972 973 974 975 976 977 978
onOrderClick: _propTypes.default.func, /** * Enable/Disable default session manager * Save user and token with default session manager */ useDefualtSessionManager: _propTypes.default.bool, /** * Access token to update user * Is required when `useDefualtSessionManager` is false */
1
1
1
+ 47 other calls in file
41 42 43 44 45 46 47 48 49 50 51
fullScreen: (0, _withWidth.isWidthDown)(breakpoint, props.width) }, props)); } process.env.NODE_ENV !== "production" ? WithMobileDialog.propTypes = { width: _propTypes.default.oneOf(['xs', 'sm', 'md', 'lg', 'xl']).isRequired } : void 0; return (0, _withWidth.default)()(WithMobileDialog); }; };
0
3
1
+ 3 other calls in file
127 128 129 130 131 132 133 134 135 136
initialWidth: _propTypes.default.oneOf(['xs', 'sm', 'md', 'lg', 'xl']), /** * @ignore */ theme: _propTypes.default.object, /** * Bypass the width calculation logic. */
0
3
1
+ 11 other calls in file
168 169 170 171 172 173 174 175 176 177
checked: _propTypes.default.bool, /** * The icon to display when the component is checked. */ checkedIcon: _propTypes.default.node.isRequired, /** * Override or extend the styles applied to the component. * See [CSS API](#css) below for more details.
0
3
1
+ 75 other calls in file
GitHub: Bryan-Cyf/SuperShortLink
166 167 168 169 170 171 172 173 174 175
disabled: _propTypes.default.bool, /** * If `true`, the ripple effect will be disabled. */ disableRipple: _propTypes.default.bool, /** * The icon to display when the component is unchecked. */
0
3
1
+ 55 other calls in file
292 293 294 295 296 297 298 299 300 301
autoFocusItem: _propTypes.default.bool, /** * MenuList contents, normally `MenuItem`s. */ children: _propTypes.default.node, /** * @ignore */
0
3
1
+ 31 other calls in file
GitHub: Bryan-Cyf/SuperShortLink
446 447 448 449 450 451 452 453 454 455
// ---------------------------------------------------------------------- /** * Avatar element. */ avatar: _propTypes.default.element, /** * This prop isn't supported. * Use the `component` prop if you need to change the children structure.
0
3
1
+ 63 other calls in file
GitHub: Bryan-Cyf/SuperShortLink
63 64 65 66 67 68 69 70 71 72
/** * If `true`, the component will not only prevent server-side rendering. * It will also defer the rendering of the children into a different screen frame. */ defer: _propTypes.default.bool, /** * The fallback content to display. */
0
3
1
+ 11 other calls in file
190 191 192 193 194 195 196 197 198 199
disabled: _propTypes.default.bool, /** * If `true`, the label will be displayed in an error state. */ error: _propTypes.default.bool, /** * If `true`, the input of this label is focused. */
0
3
1
+ 47 other calls in file
148 149 150 151 152 153 154 155 156 157
className: _propTypes.default.string, /** * A control element. For instance, it can be be a `Radio`, a `Switch` or a `Checkbox`. */ control: _propTypes.default.element.isRequired, /** * If `true`, the control will be disabled. */
0
3
1
+ 39 other calls in file
415 416 417 418 419 420 421 422 423 424
}; FormChipCell.propTypes = { chipOptions: _types.CHIP_OPTIONS, delimiter: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.element]), formState: _propTypes.default.shape({}).isRequired, initialValues: _propTypes.default.object.isRequired, isEditable: _propTypes.default.bool, label: _propTypes.default.string, name: _propTypes.default.string.isRequired, onClick: _propTypes.default.func,
7
0
2
+ 10 other calls in file
162 163 164 165 166 167 168 169 170 171
}; HiddenChipsBlock.propTypes = { chipClassNames: _propTypes.default.string.isRequired, chipOptions: _types.CHIP_OPTIONS.isRequired, chips: _propTypes.default.array.isRequired, handleShowElements: _propTypes.default.func.isRequired, textOverflowEllipsis: _propTypes.default.bool }; var _default = HiddenChipsBlock; exports.default = _default;
7
0
2
+ 3 other calls in file
331 332 333 334 335 336 337 338 339 340
className: '', validationRules: {} }; NewChipForm.propTypes = { chip: _propTypes.default.object.isRequired, chipIndex: _propTypes.default.number.isRequired, chipOptions: _types.CHIP_OPTIONS.isRequired, className: _propTypes.default.string, editConfig: _propTypes.default.shape({}).isRequired, handleRemoveChip: _propTypes.default.func.isRequired,
7
0
2
+ 11 other calls in file
1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098
/** The chips to display (enables controlled mode if set). */ value: _propTypes.default.array, /** The variant of the Input component */ variant: _propTypes.default.oneOf(['outlined', 'standard', 'filled']), } ChipInput.defaultProps = { allowDuplicates: false, blurBehavior: 'clear',
5
11
1
+ 296 other calls in file
GitHub: kartverket/r_map
267 268 269 270 271 272 273 274 275 276 277
})); }) : ''); }; LayerEntry.propTypes = { layer: _propTypes.default.object, meta: _propTypes.default.object }; var _default = LayerEntry; exports.default = _default;
1
4
11
+ 15 other calls in file
GitHub: kartverket/r_map
185 186 187 188 189 190 191 192 193 194
ServicePanel.propTypes = { /** * The services to be parsed and shown in the panel * @type {Object} -- required */ services: _propTypes.default.object.isRequired, removeMapItem: _propTypes.default.object }; var _default = ServicePanel; exports.default = _default;
1
4
11
GitHub: kartverket/r_map
283 284 285 286 287 288 289 290 291 292 293
} })))))); }; SearchBar.propTypes = { searchText: _propTypes.default.string, placeholder: _propTypes.default.string, onChange: _propTypes.default.func, onEnter: _propTypes.default.func, onSearchClick: _propTypes.default.func
1
4
11
+ 4 other calls in file
GitHub: kartverket/r_map
68 69 70 71 72 73 74 75 76 77 78
return /*#__PURE__*/_react.default.createElement("div", null, legend()); }; InlineLegend.propTypes = { legendUrl: _propTypes.default.string }; var _default = InlineLegend; exports.default = _default;
1
4
11
prop-types.default is the most popular function in prop-types (2947 examples)