PlacementGrid API
import { PlacementGrid } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
align | Responsive<CssValue> | |
alignContent | Responsive<CssValue> | |
autoColumns | Responsive<CssValue> | |
autoFlow | Responsive<CssValue> | |
autoRows | Responsive<CssValue> | |
columnGap | Responsive<CssValue> | |
columns | Responsive<CssValue> | |
display | Responsive<'grid' | 'inline-grid' | CssValue> | |
draggable | boolean | |
gap | Responsive<CssValue> | |
headless | boolean | |
interactive | boolean | |
justify | Responsive<CssValue> | |
justifyContent | Responsive<CssValue> | |
order | 'dom' | 'row-major' | |
place | Responsive<CssValue> | |
placeContent | Responsive<CssValue> | |
rowGap | Responsive<CssValue> | |
rows | Responsive<CssValue> |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
PlacementGrid.Item props
| Prop | Type | Description |
|---|---|---|
as | keyof JSX.IntrinsicElements | |
column | number | |
columnSpan | number | |
disabled | boolean | |
label | string | |
row | number | |
rowSpan | number | |
selected | boolean | |
value | string |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-placement-grid>
PlacementGrid renders the ui-placement-grid custom element from @editora/ui-core, which can also be used without React.
Attributes: classname, draggable, headless, interactive, order
Events: itemmove