Last updated

Wrap theme components

You can wrap theme components instead of eject them completely. The following example adds the className my-menu to the Menu component:

import * as React from 'react';

// import original component
import { Menu as Original } from '@redocly/theme/components/Menu/Menu';

export const Menu = (props) => {
  return <Original {...props} className="my-menu" />;
};