mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
chrone: sperate client and server to different repos.
This commit is contained in:
23
src/components/FieldHint.js
Normal file
23
src/components/FieldHint.js
Normal file
@@ -0,0 +1,23 @@
|
||||
import React from 'react';
|
||||
import { Tooltip } from '@blueprintjs/core';
|
||||
import Icon from './Icon';
|
||||
|
||||
import 'style/components/Hint.scss';
|
||||
|
||||
/**
|
||||
* Field hint.
|
||||
*/
|
||||
export default function FieldHint({
|
||||
content,
|
||||
position,
|
||||
iconSize = 12,
|
||||
tooltipProps
|
||||
}) {
|
||||
return (
|
||||
<span class="hint">
|
||||
<Tooltip content={content} position={position} { ...tooltipProps }>
|
||||
<Icon icon="info-circle" iconSize={iconSize} />
|
||||
</Tooltip>
|
||||
</span>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user