How to use the @material/radio/dist/mdc.radio.MDCRadioFoundation function in @material/radio

To help you get started, we’ve selected a few @material/radio 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 gutenye / react-mc / src / Radio / Radio.js View on Github external
getDefaultFoundation() {
    // prettier-ignore
    return new MDCRadioFoundation({
      addClass: helper.addClass('rootProps', this),
      removeClass: helper.removeClass('rootProps', this),
      getNativeControl: () => this.nativeCb_,
    })
  }
github react-mdc / react-material-components-web / packages / radio / src / Container.tsx View on Github external
constructor(props) {
        super(props);
        this.adapter = new FoundationAdapter();
        this.foundation = new MDCRadioFoundation(this.adapter.toObject());
    }