Context menu panels can be passed React elements through the{' '}
content prop instead of items.
@@ -184,16 +188,24 @@ export const ContextMenuExample = {
width: [number of pixels] to the
panel tree.
+
+
Custom items
+
You can add separator lines in the items prop if
you define an item as{' '}
{'{isSeparator: true}'}. This will
- pass the rest of its fields as props to a{' '}
+ pass the rest of the object properties to an{' '}
EuiHorizontalRule
{' '}
component.
+
+ For completely custom rendered items, you can use the{' '}
+ {'{renderItem}'} property to pass a component or
+ any function that returns a JSX node.
+