How to use the utilities.joinClasses function in utilities

To help you get started, we’ve selected a few utilities examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Azure / pcs-remote-monitoring-webui / src / components / shared / forms / formGroup.js View on Github external
render() {
    // Attach the formGroupId to allow automatic focus when a label is clicked
    const childrenWithProps = React.Children.map(this.props.children,
      child => {
        if (React.isValidElement(child) && isFunc(child.type)) {
          return React.cloneElement(child, { formGroupId: this.formGroupId });
        }
        return child;
      }
    );
    return <div>{childrenWithProps}</div>;
  }
}
github Azure / pcs-remote-monitoring-webui / src / components / shared / forms / sectionHeader.js View on Github external
export const SectionHeader = (props) =&gt; (
  <div>{props.children}</div>
);
github Azure / pcs-remote-monitoring-webui / src / components / shared / propertyGrid / propertyGridHeader.js View on Github external
export const PropertyGridHeader = (props) =&gt; (
  <div>{props.children}</div>
);
github Azure / pcs-remote-monitoring-webui / src / components / shared / forms / btnToolbar.js View on Github external
export const BtnToolbar = (props) =&gt; (
  <div>{props.children}</div>
);
github Azure / pcs-remote-monitoring-webui / src / components / shared / forms / select.js View on Github external
export const Select = ({ className, onChange, name, ...props }) =&gt; {
  return ;
};
github Azure / pcs-remote-monitoring-webui / src / components / pages / dashboard / grid / cell.js View on Github external
export const Cell = ({ className, children }) =&gt; (
  <div>
    <div>
      { children }
    </div>
  </div>
);
github Azure / pcs-remote-monitoring-webui / src / components / shared / forms / hyperlink.js View on Github external
export const Hyperlink = (props) =&gt; {
  const { children, className, href } = props;

  if (!href) return null;
  return (
    <a>
      {children}
    </a>
  );
};
github Azure / pcs-remote-monitoring-webui / src / components / shared / forms / errorMsg.js View on Github external
export const ErrorMsg = (props) =&gt; {
  const { children, className } = props;
  return (
    <div>
      <svg path="{svgs.error}"></svg>
      { children }
    </div>
  );
};
github Azure / pcs-remote-monitoring-webui / src / components / pages / dashboard / panel / panel.js View on Github external
export const Panel = ({ className, children }) =&gt; (
  <div>
    { children }
  </div>
);

utilities

A classic collection of JavaScript utilities

Apache-2.0
Latest version published 2 years ago

Package Health Score

30 / 100
Full package analysis

Popular utilities functions