Reactberry Documentation
A docs site powered entirely by Reactberry itself.
blocks
Build larger UI patterns with Reactberry blocks after your provider and primitive elements are already in place.
After you have the provider wired up and are comfortable with Box, Text, Button, and Field, the next layer is @reactberry/system/blocks.
Blocks are composed reusable structures built on top of elements.
import { Container, Main, Heading, Divider } from "@reactberry/system/blocks";
Use blocks when you want more structure and behavior out of the box.
Good examples include:
Use @reactberry/system/elements for foundational items:
BoxTextButtonFieldUse @reactberry/system/blocks when you want a composed reusable structure with more opinionated behavior or layout built in.
import { Box, Text, Button } from "@reactberry/system/elements";
import { Container, Main, Heading, Divider } from "@reactberry/system/blocks";
export default function DashboardPage() {
return (
<Container>
<Main>
<Box p="l" display="flex" flexDirection="column" gap="m">
<Heading>
<Text as="h1" fontSize="xxxl" fontWeight="700">
Dashboard
</Text>
</Heading>
<Text as="p" color="secondary">
Start with primitives, then use blocks to scale the layout.
</Text>
<Divider />
<Button variant="default">Create report</Button>
</Box>
</Main>
</Container>
);
}
Reactberry currently exports blocks in areas like:
Once you are comfortable with blocks, continue into the Guides section for longer walkthroughs and implementation patterns.