Skip to main content
Version: Next

Collection API

import { Collection } from '@editora/ui-react';

Props​

PropTypeDescription
containerParentNode | null
directItemSelectorstring
itemRolestring
itemsHTMLElement[] | null
itemSelectorstring
onCollectionChange() => void

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Element: <ui-collection>​

Collection renders the ui-collection custom element from @editora/ui-core, which can also be used without React.

Attributes: direct-item-selector, item-role, item-selector

Events: collection-change