# Overriding component structure
Learn how to override the default DOM structure of Material UI components.
Material UI components are designed to suit the widest possible range of use cases, but you may occasionally need to change how a component's structure is rendered in the DOM. To understand how to do this, it helps to know a bit about how the API design has evolved over time, and to have an accurate mental model of the components themselves. ## Context Prior to Material UI v6, it was not possible to override the structure of most components in the library. Some components had `*Props` props that allowed you to pass props to a specific slot, but this pattern was not applied consistently. In v6, those props were deprecated in favor of the `slots` and `slotProps` props, which allow for more granular control over the structure of a component and make the API more consistent across the library. ## The mental model A component's structure is determined by the elements that fill that component's **slots**. Slots are most commonly filled by HTML tags, but may also be filled by React components. All components contain a root slot that defines their primary node in the DOM tree; more complex components also contain additional interior slots named after the elements they represent. :::info To see the available slots for a component, refer to the slots sections of the respective component API documentation. ::: All _non-utility_ Material UI components accept two props for overriding their rendered HTML structure: - `component`—to override the root slot - `slots`—to replace any interior slots (when present) as well as the root Additionally, you can pass custom props to interior slots using `slotProps`. ## The root slot The root slot represents the component's outermost element. It is filled by a styled component with an appropriate HTML element. For example, the [Button's](/material-ui/react-button/) root slot is a `