Skip to content

Commit 85668a1

Browse files
committed
feat: add main component
1 parent add5009 commit 85668a1

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Whitespace-only changes.

0 commit comments

Comments
 (0)