How to use the @material/ripple.MDCRipple function in @material/ripple

To help you get started, we’ve selected a few @material/ripple 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 jamesmfriedman / rmwc / Ripple / index.js View on Github external
initRipple() {
		// a stupid hack for the test environment where this ends up undefined
		if (process.env.NODE_ENV === 'test') {
			this.el.dataset = {};
		}

		this.api = new MDCRipple(this.el);
		this.checkProps(this.props);
	}
github matsp / material-components-vue / src / components / Button / Button.vue View on Github external
mounted() {
        if (this.interactive)
            this.mdcRipple = new MDCRipple(this.$el)
    },
    destroyed() {
github Tencent / omi / packages / omim / src / list-old / index.tsx View on Github external
        listControl.listElements.map((listItemEl) => new MDCRipple(listItemEl))
        listControl.listen('MDCList:action', (evt: any) => {
github cdr / code-server / packages / app / common / src / containers.tsx View on Github external
Object.keys(this.refs).forEach((ref) => {
			const el = this.refs[ref];
			if (el) {
				const element = ReactDOM.findDOMNode(el);
				if (element) {
					(element as HTMLElement).classList.add("mdc-ripple-surface");
					(element as HTMLElement).setAttribute("data-mdc-ripple-is-unbounded", "");
					const r = new MDCRipple(element);
				}
			}
		});
	}
github Tencent / omi / packages / omim / src / bottom-nav / index.tsx View on Github external
this.shadowRoot.querySelectorAll('.ripple').forEach(dom => {
			new MDCRipple(dom)
		})
	}
github Tencent / omi / packages / omim / src / chips / index.tsx View on Github external
this.shadowRoot.querySelectorAll('.mdc-chip').forEach(item => {
        new MDCRipple(item)
      })
    }
github matsp / material-components-vue / src / components / Fab / Fab.vue View on Github external
mounted() {
        if (this.interactive)
            this.mdcRipple = new MDCRipple(this.$el)
    },
    destroyed() {
github material-components / material-components-web-catalog / src / ShapeCatalog.js View on Github external
        <button> this.ripple = el &amp;&amp; new MDCRipple(el)}&gt;Angled Corners</button>
        <div></div>
github matsp / material-components-vue / src / components / Textfield / Textfield.vue View on Github external
mounted() {
        this.mdcTextfield = new MDCTextfield(this.$el)
       
        if (this.interactive && this.box)
            this.mdcRipple = new MDCRipple(this.$el)
    },
    destroyed() {