diff options
Diffstat (limited to 'packages/cli/src/ui/components/shared/RadioButtonSelect.tsx')
| -rw-r--r-- | packages/cli/src/ui/components/shared/RadioButtonSelect.tsx | 5 |
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} /> ); } |
