@hashicorp/react-vertical-text-block-list

7.0.1 • Public • Published

Vertical Text Block List

Vertical list of blocks of text (with optional images) with links.

Props

  • data - (arr) - Array of objects from the CMS, object props below
    • logo [optional] - overrides header text if present
      • url - URL of logo to display
      • alt - alt text for image
    • header - [markdown] header text to display on the left of an item
    • body - [markdown] body text that is displayed to the right
    • linkUrl - [optional] - If provided, links the entire 'card' to this URL
  • centerText [optional] (boolean) - sets text alignment to centered on mobile view if true (defaults to left-aligned)
  • Link [optional] (component) - if using nextjs, you can pass the Link component and it will be used for rendering links

Readme

Keywords

none

Package Sidebar

Install

npm i @hashicorp/react-vertical-text-block-list

Weekly Downloads

374

Version

7.0.1

License

MPL-2.0

Unpacked Size

23.1 kB

Total Files

6

Last publish

Collaborators

  • leahmariebush
  • kaitlynnefuery
  • abhishek-hashicorp
  • cameronperera
  • alexju
  • consul-ui-services
  • wenincode-hashicorp
  • hashicb
  • britt.lindgren
  • paulhcp
  • nandereck
  • tstormk
  • hashibot-hds
  • lackeyjb1
  • youriwims
  • jpogran
  • _natmegs
  • thrashr888
  • melsumner
  • didoo
  • zchsh
  • hcitsec
  • gregone
  • meirish
  • enmod
  • kaxcode
  • anubhavmishra-hashicorp
  • hashibot-web
  • cstitt-hashi
  • mocohen
  • dhaulagiri