ConfirmDialog.js
1 month ago
LabelWithTooltip.js
1 month ago
ProGate.js
1 month ago
SectionCard.js
1 month ago
SettingsDataProvider.js
1 month ago
SettingsPageShell.js
1 month ago
UnsavedChangesDialog.js
1 month ago
navigationGuard.js
1 month ago
LabelWithTooltip.js
18 lines
| 1 | import { Container, Label, Tooltip } from '@bsf/force-ui'; |
| 2 | import { Info } from 'lucide-react'; |
| 3 | |
| 4 | const LabelWithTooltip = ( { label, tooltip, size = 'sm', htmlFor } ) => ( |
| 5 | <Container direction="row" align="center" className="gap-1.5"> |
| 6 | <Label size={ size } htmlFor={ htmlFor }> |
| 7 | { label } |
| 8 | </Label> |
| 9 | { tooltip && ( |
| 10 | <Tooltip content={ tooltip } arrow placement="right"> |
| 11 | <Info className="size-3.5 text-icon-secondary cursor-help shrink-0" /> |
| 12 | </Tooltip> |
| 13 | ) } |
| 14 | </Container> |
| 15 | ); |
| 16 | |
| 17 | export default LabelWithTooltip; |
| 18 |