File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 1- import { useState } from "react" ;
21import ListWithRadio from "../ui/list/ListWithRadio" ;
32
43export default function QuestionInput ( ) {
5- const [ selectedOption , setSelectedOption ] = useState < string | null > ( null ) ;
6-
74 return (
85 < div className = "col-span-full" >
96
10- < ListWithRadio
11- value = { selectedOption } // controlled
12- onChange = { ( val : React . SetStateAction < string | null > ) => setSelectedOption ( val ) }
13- />
7+ < ListWithRadio />
148 </ div > )
159}
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ import Button from "./Button";
33import Spinner from "@/components/ui/spinner" ;
44
55interface SpinnerButtonProps {
6+ variant ?: "primary" | "secondary" | "tertiary" ; // Button variant
7+ size ?: "sm" | "md" | undefined ;
68 children : ReactNode ; // Button text or content
79 startIcon ?: ReactNode ; // Icon before the text
810 onClick ?: ( ) => void ; // Click handler
You can’t perform that action at this time.
0 commit comments