0.0.4 • Published 5 months ago

@sqlframes/docusaurus-components v0.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

This package contains components needed to embed SQL Frames into Docusaurus. It is accompanied with another package called @sqlframes/docusaurus-plugin that provides the docusaurus plugin functionality.

Usage within Docusaurus

Within docusaurus content such as pages, docs or blog posts, it is possible to embed analytics components that completely run within the browser using this package.

import { REPL } from '@sqlframes/docusaurus-components';


<REPL>

```js
return DataFrame.fromURL('https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.csv');
```

</REPL>

Components

REPL

Following parameters are available

paramdefaultdescription
inputVisiblefalsewhether the REPL code is visible by default to the end user. By default only the REPL output is visible
readOnlytrue for production mode, false for development modeBy default REPL input is read-only. This allows end users to view the code but not modify it
scriptvoid 0Usual way of providing the default script to run by the REPL is by embedding code block within the REPL tags as shown above. However, it is also possible to provide it as a parameter.
runtrueWhether to run the script by default. Expensive computations can be left to end user to decide to explicitly execute. These code blocks shouldn't introduce new scoped variables that are used by other blocks as they are not executed by default.