@makechtec/tlapali
v1.1.2
Published
Devuelve un componente react que permite mostrar código
Downloads
6
Readme
Tlapali
Installation
npm install @makechtec/tlapali @makechtec/tlapali_themes @makechtec/tlapali_langs
Usage
import { Code } from '@makechtec/tlapali';
import { Makech } from '@makechtec/tlapali_themes';
import { Java } from '@makechtec/tlapali_langs';
export const App = () => {
return(
<Code theme={Makech} lang={Java}>
{`
public class App {
private static final String name;
}
`}
</Code>
);
};
Notice that the children component is a multi-line string enclosed by curly brackets and backquotes.