Skip to content

Commit

Permalink
Add onColor and offColor props to BitIndicators component
Browse files Browse the repository at this point in the history
  • Loading branch information
wduckitt committed Apr 30, 2024
1 parent 7fde634 commit e7ab597
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ReactApp/src/components/BaseComponents/BitIndicators.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,14 @@ interface BitIndicatorsProps {
* Additional props for the tooltip component.
*/
tooltipProps?: object;
/**
* The color of the bits when on.
*/
onColor?: string;
/**
* The color of the bits when off.
*/
offColor?: string;
}

/**
Expand All @@ -208,16 +216,17 @@ const BitIndicators = ({
usePvBitLabels = false,
...props
}: BitIndicatorsProps) => {

return (
<Widget
{...props}
component={BitIndicatorsComponent}
numberOfBits={numberOfBits}
horizontal={horizontal}
reverseBits={reverseBits}
onColor={onColor}
offColor={offColor}
usePvBitLabels={usePvBitLabels}
component={BitIndicatorsComponent}
/>
);
};
Expand Down

0 comments on commit e7ab597

Please sign in to comment.