Skip to content

AreaElement API

API reference docs for the React AreaElement component. Learn about the props, CSS, and other APIs of this exported module.

Component demos

Import

import { AreaElement } from '@mui/x-charts/LineChart';
// or
import { AreaElement } from '@mui/x-charts';
Learn about the difference by reading this guide on minimizing bundle size.

Props

skipAnimation

If true, animations are skipped.

Type:bool

Default:false


slotProps

The props used for each component slot.

Type:object

Default:{}


slots

Overridable component slots.

See Slots API below for more details.

Type:object

Default:{}


The component cannot hold a ref.

Slots

area

The component that renders the area.

Default component: AnimatedArea


CSS classes

These class names are useful for styling with CSS. They are applied to the component's slots when specific states are triggered.

.MuiAreaElement-faded

Styles applied to the root element when faded.

Rule name:faded


.MuiAreaElement-highlighted

Styles applied to the root element when higlighted.

Rule name:highlighted


.MuiAreaElement-root

Styles applied to the root element.

Rule name:root



You can override the style of the component using one of these customization options: