diff --git a/packages/grafana-data/src/types/select.ts b/packages/grafana-data/src/types/select.ts index d807a1a033b..db659062543 100644 --- a/packages/grafana-data/src/types/select.ts +++ b/packages/grafana-data/src/types/select.ts @@ -5,6 +5,7 @@ export interface SelectableValue { label?: string; value?: T; imgUrl?: string; + icon?: string; description?: string; [key: string]: any; } diff --git a/packages/grafana-ui/src/components/Forms/RadioButtonGroup/RadioButton.tsx b/packages/grafana-ui/src/components/Forms/RadioButtonGroup/RadioButton.tsx index 624e93e20e6..cdc17f07661 100644 --- a/packages/grafana-ui/src/components/Forms/RadioButtonGroup/RadioButton.tsx +++ b/packages/grafana-ui/src/components/Forms/RadioButtonGroup/RadioButton.tsx @@ -11,6 +11,7 @@ export interface RadioButtonProps { size?: RadioButtonSize; disabled?: boolean; name?: string; + description?: string; active: boolean; id: string; onChange: () => void; @@ -101,6 +102,7 @@ export const RadioButton: React.FC = ({ onChange, id, name = undefined, + description, fullWidth, }) => { const theme = useTheme(); @@ -117,7 +119,7 @@ export const RadioButton: React.FC = ({ checked={active} name={name} /> -