Rebar UI

1.0

opinion

ShapeGallery

A searchable, categorised palette of shapes with favourites, for picking one to drop on a canvas.

Depot signage shapesSearch, switch category, star the ones you reuse
One category

In context

Fascia editorPick a shape on the left, see it on the canvas
depot-fascia-final.pdfDepot signage, 21 Nov

Selected: Arrow right

Props

PropTypeRequiredDefault
itemsShapeGalleryItem[]Yes—
favoriteIdsstring[] | undefinedNo—
defaultFavoriteIdsstring[] | undefinedNo—
onFavoriteIdsChange((ids: string[]) => void) | undefinedNo—
onSelect(item: ShapeGalleryItem) => voidYes—
searchPlaceholderstring | undefinedNoSearch shapes...

data-rebar-* attributes

data-rebar-component="shape-gallery"; parts include swatch, preview, label, and favorite-toggle.

Migrating to Ant Design

Not codemod-covered — compose AntD's own Tabs + a plain grid of clickable cards directly.