We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent add5009 commit 85668a1Copy full SHA for 85668a1
2 files changed
lib/components/contenteditable/index.tsx
@@ -0,0 +1,18 @@
1
+import React from "react"
2
+
3
+interface ContenteditableProps {
4
+ placeholder?: string
5
+}
6
7
+const Contenteditable: React.FC<ContenteditableProps> = (props) => {
8
+ return (
9
+ <div
10
+ contentEditable
11
+ dir="auto"
12
+ role="textbox"
13
+ aria-label={props.placeholder || ""}
14
+ />
15
+ )
16
17
18
+export default Contenteditable
lib/main.ts
0 commit comments