Blockquote
Blockquote with optional cite
Import
Source
Docs
Package
Usage
Life is like an npm install – you never know what you are going to get.– Forrest Gump
Color
<Blockquote cite="– Forrest Gump">Life is like an npm install – you never know what you are going to get.</Blockquote>
Configure icon
You can use any React node as icon by passing it to icon
prop.
Note that component does not control icon size and you need to specify it manually on icon component for better fit.
You can use icons from any react icons library, for example, radix icons, feather icons or react-icons:
webpack built 40a9bf3d1a0a0914ed84 in 28259ms– Your poor i3 from 2012 struggling its best
<Blockquotecite="– Your poor i3 from 2012 struggling its best"icon={<FlameIcon size={20} />}>webpack built caa9bf3d1a0a0914ed84 in 28259ms</Blockquote>
By default blockquote uses quote icon, to disable it, set icon
prop to null:
webpack built 40a9bf3d1a0a0914ed84 in 28259ms– Your poor i3 from 2012 struggling its best
<Blockquote cite="– Your poor i3 from 2012 struggling its best" icon={null}>webpack built 40a9bf3d1a0a0914ed84 in 28259ms</Blockquote>
Built by Vitaly Rtishchev and these awesome people