OptionalallowWhether to allow dragging items between slots.
OptionalanchorScreen corner or center to anchor the inventory container. Default: 'center'.
OptionalbackgroundCSS-compatible background color for the container.
OptionalclassCustom CSS class for the container.
OptionalcolumnsNumber of columns in the grid.
OptionalonCallback fired when an item slot is clicked.
OptionalonCallback fired when an item is dropped onto a new slot index.
OptionalonCallback fired when a slot is hovered.
OptionalrarityMapping of rarity names to CSS-compatible color strings.
OptionalrowsNumber of rows in the grid.
OptionalselectedIndex of the currently highlighted or active slot.
OptionalselectedBorder color for the currently selected slot.
OptionalshowWhether to display item quantities.
OptionalshowWhether to show information tooltips on hover.
OptionalslotCSS-compatible background color for each slot.
OptionalslotCSS-compatible border color for each slot.
OptionalslotGap between slots in pixels.
OptionalslotsArray of slots defining the inventory contents.
OptionalslotPixel size of each slot.
OptionalstyleCustom inline CSS styles for the container.
OptionalvisibleToggles visibility of the inventory UI. Default: true.
Props for the Inventory component.
Renders a grid-based item container with support for dragging, tooltips, and selection.