Collection API
import { Collection } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
container | ParentNode | null | |
directItemSelector | string | |
itemRole | string | |
items | HTMLElement[] | null | |
itemSelector | string | |
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