forwardingClassNameBuilder method

ClassNameBuilder forwardingClassNameBuilder()

Returns a new ClassNameBuilder with className and blacklist values added from CssClassPropsMixin.className and CssClassPropsMixin.classNameBlacklist, if they are specified.

This method should be used as the basis for the classNames of components receiving forwarded props.

Should be used alongside copyUnconsumedProps or copyUnconsumedDomProps.

Implementation

ClassNameBuilder forwardingClassNameBuilder() {
  return ClassNameBuilder.fromProps(this.props);
}