---
filename: /packages/material-ui/src/RootRef/RootRef.js
---

<!--- This documentation is automatically generated, do not try to edit it. -->

# RootRef

Helper component to allow attaching a ref to a
child element that may not accept refs (functional component).
It's higly inspired by https://github.com/facebook/react/issues/11401#issuecomment-340543801

## Props

| Name | Type | Default | Description |
|:-----|:-----|:--------|:------------|
| <span class="prop-name required">children *</span> | <span class="prop-type">element |  |  |
| <span class="prop-name required">rootRef *</span> | <span class="prop-type">func |  |  |

Any other properties supplied will be spread to the root element (native element).

