Skip to contentSkip to content

StandaloneEvent API

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

Demos

Import

import { StandaloneEvent } from '@mui/x-scheduler/standalone-event';
// or
import { StandaloneEvent } from '@mui/x-scheduler';

Learn about the difference by reading this guide on minimizing bundle size.

Props

Props of the native component are also available.

NameTypeDefaultDescription
classNamefunc
| string
-

CSS class applied to the element, or a function that returns a class based on the component's state.

nativeButtonboolfalse

Whether the component renders a native <button> element when replacing it via the render prop. Set to true if the rendered element is a native button.

onEventDropfunc-

Callback fired when the event is dropped into the Event Calendar.

renderelement
| func
-

Allows you to replace the component's HTML element with a different tag, or compose it with another component.
Accepts a ReactElement or a function that returns the element to render.

stylefunc
| object
-

Style applied to the element, or a function that returns a style object based on the component's state.

sxArray<func
| object
| bool>
| func
| object
-

The system prop that allows defining system overrides as well as additional CSS styles.

See the `sx` page for more details.

The ref is forwarded to the root element.

Source code

If you did not find the information in this page, consider having a look at the implementation of the component for more detail.