0.0.1 • Published 9 months ago
@rendr-view/rendr-block v0.0.1
@rendr-view/rendr-block
A simple block React compononent. Implements the Rendr blockRenderer to render Rendr blocks represented in JSON format.
Installation
yarn add @rendr-view/rendr-blockProps
The RendrBlock extends React.HTMLAttributes<HTMLDivElement> with these props:
export interface Props {
clx?: {
block?: string;
inner?: string;
}
className?: string;
blockRenderer?: BlockRenderer;
blocks?: BlockDefinition[];
}clx
An optional object of utility classes to be applied to the block elements.
className
An optional className to be applied to the RendrBlock root div.
blockRenderer
The Rendr blockRenderer. This is a function that renders blocks as React components. If you are using Rendr, the blockRenderer is passed to all root components.
blocks
A list of Rendr blocks.
0.0.1
9 months ago
0.0.1-alpha.2
3 years ago
0.0.1-alpha.3
3 years ago
0.0.1-alpha.1
3 years ago
0.0.1-alpha.0
3 years ago