From 2268cf6ad1060bd4e9b8df9b8778f4a9ee9c9f5e Mon Sep 17 00:00:00 2001 From: dengfuping Date: Fri, 26 Jul 2024 14:57:13 +0800 Subject: [PATCH] chore(design): Add password, showCount and allowClear demo for Input --- packages/design/src/input/demo/allowClear.tsx | 17 +++++++++++++++++ packages/design/src/input/demo/password.tsx | 16 ++++++++++++++++ packages/design/src/input/demo/showCount.tsx | 17 +++++++++++++++++ packages/design/src/input/index.md | 3 +++ 4 files changed, 53 insertions(+) create mode 100644 packages/design/src/input/demo/allowClear.tsx create mode 100644 packages/design/src/input/demo/password.tsx create mode 100644 packages/design/src/input/demo/showCount.tsx diff --git a/packages/design/src/input/demo/allowClear.tsx b/packages/design/src/input/demo/allowClear.tsx new file mode 100644 index 000000000..61c0e7d22 --- /dev/null +++ b/packages/design/src/input/demo/allowClear.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import { Input, Space } from '@oceanbase/design'; + +const { TextArea } = Input; + +const onChange = (e: React.ChangeEvent) => { + console.log(e); +}; + +const App: React.FC = () => ( + + +