How to use the classnames.root function in classnames

To help you get started, we’ve selected a few classnames 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 sensu / sensu-go / dashboard / src / lib / component / base / DetailedListItem / DetailedListItemSubtitle.js View on Github external
render() {
    const { classes, children, inset, ...props } = this.props;
    const className = classnames(classnames.root, { [classes.inset]: inset });

    return (
      
        {children}
      
    );
  }
}
github sensu / sensu-go / dashboard / src / lib / component / base / DetailedListItem / DetailedListItemTitle.js View on Github external
render() {
    const { classes, children, inset, ...props } = this.props;
    const className = classnames(classnames.root, { [classes.inset]: inset });

    return (
      
        {children}
      
    );
  }
}

classnames

A simple utility for conditionally joining classNames together

MIT
Latest version published 10 months ago

Package Health Score

88 / 100
Full package analysis