Skip to content

Commit

Permalink
Update ToggleButtonProps interface with onColor and offColor options
Browse files Browse the repository at this point in the history
  • Loading branch information
wduckitt committed May 7, 2024
1 parent 7806f10 commit 1054183
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ReactApp/src/components/BaseComponents/ToggleButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,11 @@ interface ToggleButtonProps {
/**
* Custom on color to be used, must be derived from Material UI theme color.
*/
onColor?: string;
onColor?: "primary" | "secondary" | "error" | "warning" | "info" | "success" | "inherit";
/**
* Custom off color to be used, must be derived from Material UI theme color.
*/
offColor?: string;
offColor?: "primary" | "secondary" | "error" | "warning" | "info" | "success" | "inherit";
/** If defined then component will act as momentary button*/
momentary?: boolean;

Expand Down

0 comments on commit 1054183

Please sign in to comment.