Browse Source

Add `size` to Input (#143)

Kabir Goel 2 years ago
parent
commit
9c3b81ff82
1 changed files with 3 additions and 0 deletions
  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"
     variant: Var[str]
 
+    # "lg" | "md" | "sm" | "xs"
+    size: Var[str]
+
     @classmethod
     def get_controlled_triggers(cls) -> Set[str]:
         """Get the event triggers that pass the component's value to the handler.