We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70c90e7 commit 102a11fCopy full SHA for 102a11f
packages/core/src/Ellipsis/README.md
@@ -3,22 +3,22 @@ Ellipsis 超出省略
3
4
用于文本过长,超出长度显示 `...`。
5
6
-<!--rehype:style=zoom: 33%;float: right; margin-left: 15px;-->
7
8
### 基础示例
9
10
-```jsx
11
-import { Fragment } from 'react';
+
+```jsx mdx:preview
+import React from "react"
12
import { Ellipsis } from '@uiw/react-native';
13
14
function Demo() {
15
- const [visible, setVisible] = useState(false);
16
return (
17
- <Fragment>
18
- <Ellipsis maxLen={5}>用于文本过长,超出长度显示</Ellipsis>
19
- </Fragment>
+ <Ellipsis maxLen={5}>用于文本过长,超出长度显示</Ellipsis>
20
);
21
}
+export default Demo;
22
```
23
24
### Props
0 commit comments