primereact
Version:
PrimeReact is an open source UI library for React featuring a rich set of 90+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with Prime
2 lines (1 loc) • 529 B
JavaScript
import{ObjectUtils as e,classNames as r}from"primereact/utils";var t={defaultProps:{__TYPE:"IconBase",className:null,label:null,spin:!1},getProps:function(r){return e.getMergedProps(r,t.defaultProps)},getOtherProps:function(r){return e.getDiffProps(r,t.defaultProps)},getPTI:function(a){var l=e.isEmpty(a.label),o=t.getOtherProps(a),s={className:r("p-icon",{"p-icon-spin":a.spin},a.className),role:l?void 0:"img","aria-label":l?void 0:a.label,"aria-hidden":a.label?l:void 0};return e.getMergedProps(o,s)}};export{t as IconBase};