소스 검색

Added default val radio group (#961)

Alek Petuskey 2 년 전
부모
커밋
272dfc2d7e
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      pynecone/components/forms/radio.py

+ 3 - 0
pynecone/components/forms/radio.py

@@ -20,6 +20,9 @@ class RadioGroup(ChakraComponent):
     # State var to bind the the input.
     value: Var[Any]
 
+    # The default value.
+    default_value: Var[Any]
+
     @classmethod
     def get_controlled_triggers(cls) -> Dict[str, Var]:
         """Get the event triggers that pass the component's value to the handler.