1.1.24 • Published 4 months ago
@mybricks/code-editor v1.1.24
code-editor
代码编辑器
安装
npm i @mybricks/code-editor
接口定义
type numOrStr = number | string;
interface Props {
width?: numOrStr;
height?: numOrStr;
value?: string;
language?: string;
fontSize: numOrStr;
theme?: 'light' | 'vs-dark';
readOnly?: boolean;
tabSize?: number;
onChange?: (v: string) => void;
}
使用
import Editor from '@mybricks/code-editor'
export default function App() {
return (
<Editor
width={500}
height={400}
fontSize={16}
language="javascript"
theme="vs-dark"
/>
)
}
1.1.24
4 months ago
1.1.23
4 months ago
1.1.22
4 months ago
1.1.21
5 months ago
1.1.20
5 months ago
1.1.16
5 months ago
1.1.19
5 months ago
1.1.18
5 months ago
1.1.17
5 months ago
1.1.15
5 months ago
1.1.14
5 months ago
1.1.9
5 months ago
1.1.12
5 months ago
1.1.11
5 months ago
1.1.10
5 months ago
1.1.13
5 months ago
1.1.8
6 months ago
1.1.7
8 months ago
1.1.6
8 months ago
1.1.5
8 months ago
1.1.4
11 months ago
1.1.4-beta.1
11 months ago
1.1.4-beta.2
11 months ago
1.1.4-beta.0
11 months ago
1.1.3
1 year ago
1.1.2
1 year ago
1.1.1
1 year ago
1.1.0
1 year ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago