feat: Add examples for input and textarea#79
Conversation
|
c0b5b63 to
faf2ad1
Compare
| <view style={{ linearOrientation: "vertical", width: "100%", height: "100%", padding: "20px" }}> | ||
| <view style={{ width: "100%", padding: "10px", backgroundColor: "#87654321", borderRadius: "10px" }}> | ||
| { | ||
| // @ts-ignore |
There was a problem hiding this comment.
Can we instead create IntrinsicElements['textarea']? It can be moved into @lynx-js/types in the future.
| }} | ||
| > | ||
| { | ||
| // @ts-ignore |
| }} | ||
| > | ||
| { | ||
| // @ts-ignore |
|
|
||
| <textarea | ||
| style={{ width: "100%" }} | ||
| placeholder=".textarea::placeholder { |
There was a problem hiding this comment.
nitpick: I don't think this would work with @lynx-js/react < 0.108. Since we just made the fix in lynx-family/lynx-stack#654
| @@ -0,0 +1,21 @@ | |||
| { | |||
| "compilerOptions": { | |||
| "jsx": "preserve", | |||
There was a problem hiding this comment.
Please use "jsx": "react-jsx" instead.
| "jsx": "preserve", | |
| "jsx": "react-jsx", |
| @@ -0,0 +1,21 @@ | |||
| { | |||
| "compilerOptions": { | |||
| "jsx": "preserve", | |||
There was a problem hiding this comment.
| "jsx": "preserve", | |
| "jsx": "react-jsx", |
| }} | ||
| > | ||
| { | ||
| // @ts-ignore |
There was a problem hiding this comment.
Can we instead create IntrinsicElements['input']? It can be moved into @lynx-js/types in the future.
I actually made one at
| <view style={{ linearOrientation: "vertical", width: "100%", height: "100%", padding: "10px" }}> | ||
| <view style={{ width: "100%", padding: "10px", backgroundColor: "#12345678", borderRadius: "10px" }}> | ||
| { | ||
| // @ts-ignore |
| pluginTypeCheck(), | ||
| ], | ||
| output: { | ||
| assetPrefix: "https://lynxjs.org/lynx-examples/list/dist", |
There was a problem hiding this comment.
| assetPrefix: "https://lynxjs.org/lynx-examples/list/dist", | |
| assetPrefix: "https://lynxjs.org/lynx-examples/input/dist", |
| pluginTypeCheck(), | ||
| ], | ||
| output: { | ||
| assetPrefix: "https://lynxjs.org/lynx-examples/list/dist", |
There was a problem hiding this comment.
| assetPrefix: "https://lynxjs.org/lynx-examples/list/dist", | |
| assetPrefix: "https://lynxjs.org/lynx-examples/textarea/dist", |
No description provided.