소스 검색

Add `size` to Input (#143)

Kabir Goel 2 년 전
부모
커밋
9c3b81ff82
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      pynecone/components/forms/input.py

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

@@ -45,6 +45,9 @@ class Input(ChakraComponent):
     # "outline" | "filled" | "flushed" | "unstyled"
     # "outline" | "filled" | "flushed" | "unstyled"
     variant: Var[str]
     variant: Var[str]
 
 
+    # "lg" | "md" | "sm" | "xs"
+    size: Var[str]
+
     @classmethod
     @classmethod
     def get_controlled_triggers(cls) -> Set[str]:
     def get_controlled_triggers(cls) -> Set[str]:
         """Get the event triggers that pass the component's value to the handler.
         """Get the event triggers that pass the component's value to the handler.