We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is a feature request for a disabled flag on <LiveProvider> like react-live has (doc).
disabled
<LiveProvider>
react-live
The goal is to allow someone to make the editor read-only:
const isEnabled = someLogicThatChecksIfEditorShouldBeEditable; return ( <LiveProvider code={code} scope={scope} disabled={isEnabled}> <LivePreview style={{ padding: '10px' }} /> <LiveEditor style={{ minHeight: '100%', fontFamily: 'monospace' }} <LiveError /> </LiveProvider> );
The text was updated successfully, but these errors were encountered:
Add disabled to LiveError
LiveError
Sorry, something went wrong.
@nihgwu do you mean:
<LiveError disabled={true} />
If so, I just tried that, but I can still edit the LiveEditor.
LiveEditor
No branches or pull requests
This is a feature request for a
disabled
flag on<LiveProvider>
likereact-live
has (doc).The goal is to allow someone to make the editor read-only:
The text was updated successfully, but these errors were encountered: