flowviz
Version:
A framework which provides seamless integration with other phylogenetic tools and frameworks, while allowing workflow scheduling and execution, through the Apache Airflow workflow system.
33 lines (31 loc) • 789 B
JavaScript
import { InputAdornment, Grid, TextField, Tooltip } from "@mui/material";
import Typography from "@mui/material/Typography";
import * as React from "react";
import HelpOutlineOutlinedIcon from "@mui/icons-material/HelpOutlineOutlined";
export default function TextFieldWithTooltip({
id,
label,
value,
onChange = (event) => {},
tooltip,
}) {
return (
<TextField
margin="normal"
id={id}
name={id}
label={label}
value={value}
onChange={onChange}
InputProps={{
endAdornment: (
<InputAdornment position="end">
<Tooltip disableFocusListener disableTouchListener title={tooltip}>
<HelpOutlineOutlinedIcon />
</Tooltip>
</InputAdornment>
),
}}
/>
);
}