A dropdown/tooltip-style navigation component in a fluid svg container.
use it as a drop-down:
or in a tool-tip style, with your choice of columns:
All CSS is contained in /styledComponents
Sets the location of the focal point of the speech bubble. Choose from: 'top-right', 'top-left', 'right-top', 'right-bottom', 'bottom-right', 'bottom-left', 'left-bottom', 'left-top' Set to top-right by default.
<Bubble characterwidth='10' />
Size in px of the average character width. Defaults to 10.
<Bubble minTextWidth='108' />
Minimum total width of the text area. Off by default.
<Bubble textHeight='36' />
Height in px of text. Defaults to 36.
<Bubble textMargin='9' />
Vertical leading space in px. Defaults to 9.
<Bubble textColumns='3' />
The number of columns which text should be divided into. Defaults to 1.
<Bubble svgDimensions='{ x: 180, y: 54 }' />
The viewbox dimensions of the SVG background.
<Bubble maskOrigin='{ x: 144, y: 0 }' />
The origin of the circular mask which creates an open/close transition.
<Bubble thresholds='{ x: 36, y: 36 }' />
The minimum coordinate value at which offsets will be applied to the background SVG path in order to fit around the text. This is needed to avoid skewing the original path details, such as the corners or speech bubble focal point.
<Bubble dividerWidth='4' />
When multiple columns are specified - set the width of the vertical dividing line. Defaults to 2.5
<Bubble textboxOrigin='{ x: 36, y: 36 }' />
Origin coordinates of the text group.
"styled-components": "next"
"react": "^15.5.0"
"recompose": "^0.22.0"
Please note this component uses styled-components v2 (attrs constructor) and therefore should not be used in a production environment the next dependency is removed.