Block
The wrapper element for a extension, creates a block with spacing.
API Reference
Props
Name
Type
Default
Description
Examples
Basic with List
import { Block, List } from "@stagehq/ui";
export default function Extension() {
return (
<Block
title="Title"
imagePath="https://source.unsplash.com/random/400x200"
actions={link: { url="https://getstage.app" }}
size={2}
>
<List>
<List.Item type="text" title="Item 1" subtitle="This is a subtitle" />
<List.Item type="text" title="Item 2" subtitle="This is a subtitle" />
<List.Item type="text" title="Item 3" subtitle="This is a subtitle" />
</List>
</Block>
);
}With title and Cards
Last updated