Skip to main content

ContentBlock

Components

ContentBlock()

ContentBlock(props, context?): ReactNode

A ContentBlock component is a specific type of container that display content in a pre-determined style. You can find examples of Content Block usage when browsing a specific app inside the Extensions app in Akasha World.

Parameters

ParameterType
propsPropsWithChildren <ContentBlockProps>
context?any

Returns

ReactNode

Example

 <ContentBlock
blockTitle='Version History'
viewMoreIcon={<ChevronRightIcon />}
showDivider={false}
onClickviewMoreLabel={viewMoreClickHandler}
/>

Source

libs/design-system-core/src/components/ContentBlock/index.tsx:38

Props

ContentBlockProps

ContentBlockProps: object

Type declaration

MemberType
blockTitlestring
blockVariantTextProps["variant"]
onClickviewMoreLabel() => void
showDividerboolean
viewMoreIconReact.ReactElement
viewMoreLabelstring

Source

libs/design-system-core/src/components/ContentBlock/index.tsx:8