summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/components/shared/RadioButtonSelect.tsx
diff options
context:
space:
mode:
authorJacob Richman <[email protected]>2025-05-01 10:34:07 -0700
committerGitHub <[email protected]>2025-05-01 10:34:07 -0700
commit7e8f379dfbd4d70050ce301a42a38ba9c1f052f4 (patch)
tree7d712dd0b3b6b246bc7dd92048cc91c5317a3a47 /packages/cli/src/ui/components/shared/RadioButtonSelect.tsx
parenta18eea8c23dfb6759472d6b0bb80e13c2d6ef736 (diff)
Save settings to ~/.gemini/settings.json and optionally /your/workspace/.gemini/settings.json (#237)
Diffstat (limited to 'packages/cli/src/ui/components/shared/RadioButtonSelect.tsx')
-rw-r--r--packages/cli/src/ui/components/shared/RadioButtonSelect.tsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/cli/src/ui/components/shared/RadioButtonSelect.tsx b/packages/cli/src/ui/components/shared/RadioButtonSelect.tsx
index bda56014..3db8b678 100644
--- a/packages/cli/src/ui/components/shared/RadioButtonSelect.tsx
+++ b/packages/cli/src/ui/components/shared/RadioButtonSelect.tsx
@@ -37,6 +37,9 @@ export interface RadioButtonSelectProps<T> {
/** Function called when an item is highlighted. Receives the `value` of the selected item. */
onHighlight?: (value: T) => void;
+
+ /** Whether this select input is currently focused and should respond to input. */
+ isFocused?: boolean;
}
/**
@@ -77,6 +80,7 @@ export function RadioButtonSelect<T>({
initialIndex,
onSelect,
onHighlight,
+ isFocused,
}: RadioButtonSelectProps<T>): React.JSX.Element {
const handleSelect = (item: RadioSelectItem<T>) => {
onSelect(item.value);
@@ -95,6 +99,7 @@ export function RadioButtonSelect<T>({
initialIndex={initialIndex}
onSelect={handleSelect}
onHighlight={handleHighlight}
+ isFocused={isFocused}
/>
);
}