BentoGrid
A responsive tile grid for showing live component renders on a landing page. Tiles can span columns and rows and link to their docs.
import { BentoGrid } from '@lobehub/ui/awesome';Default
Render real components inside each BentoCard rather than screenshots. The grid drops to two columns on tablets and one on phones.
APIs
BentoGrid
childrennull | string | number | bigint | false | true | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<AwaitedReactNode>columnsnumberColumns on wide screens. The grid drops to two columns on tablets and one on phones.
Defaults to
4.rowHeightnumberMinimum row height in pixels.
Defaults to
120.
Also accepts all native HTML and ARIA attributes.
BentoCard
childrennull | string | number | bigint | false | true | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<AwaitedReactNode>The live content of the tile. Render real components, not screenshots.
colSpan1 | 2 | 3 | 4Columns the tile spans on wide screens.
Defaults to
1.hintnull | string | number | bigint | false | true | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<AwaitedReactNode>Short muted note on the right side of the header.
hrefstringMakes the title a link, e.g. to the component page.
renderLinkLandingLinkRenderrowSpan1 | 2 | 3Rows the tile spans on wide screens.
Defaults to
1.titlenull | string | number | bigint | false | true | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<AwaitedReactNode>
Also accepts all native HTML and ARIA attributes.