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
Parameter | Type |
---|---|
props | PropsWithChildren <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
Member | Type |
---|---|
blockTitle | string |
blockVariant | TextProps ["variant" ] |
onClickviewMoreLabel | () => void |
showDivider | boolean |
viewMoreIcon | React.ReactElement |
viewMoreLabel | string |
Source
libs/design-system-core/src/components/ContentBlock/index.tsx:8