瀏覽代碼

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"
     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.