github.com/turbot/steampipe@v1.7.0-rc.0.0.20240517123944-7cef272d4458/ui/dashboard/src/components/dashboards/check/Benchmark/ControlDimension.tsx (about)

     1  import { stringToColor } from "../../../../utils/color";
     2  
     3  const ControlDimension = ({ dimensionKey, dimensionValue }) => (
     4    <span
     5      className="rounded-md text-xs"
     6      style={{ color: stringToColor(dimensionValue) }}
     7      title={`${dimensionKey} = ${dimensionValue}`}
     8    >
     9      {dimensionValue}
    10    </span>
    11  );
    12  
    13  export default ControlDimension;