An open API service indexing awesome lists of open source software.

https://github.com/tobua/exmpl

Quickly create stylish previews for your digital creations
https://github.com/tobua/exmpl

documentation example prototyping stylesheet

Last synced: 11 months ago
JSON representation

Quickly create stylish previews for your digital creations

Awesome Lists containing this project

README

          

# exmpl

exmpl

Quickly create stylish previews for your digital creations

- For packages published to npm or on GitHub
- Quick way to scaffold a preview or demo
- `Button`, `Input`, `Grid`, `Code` and `Tabs` elements

## Usage with React

```tsx
import React from 'react'
import { createRoot } from 'react-dom/client'
import { Exmpl, Code } from 'exmpl'

createRoot(document.body).render(

This is the introduction.


Installation & Usage


{`npm i exmpl`}

)
```

`title` can be any React element, npm and github are optional and can be preprended with further icons.

```tsx
Title} icons={Google} npm="exmpl" />
```

## Elements

Includes `Button`, `Input`, `Grid`, `Code` and `Tabs` elements, refer to the [Demo](https://github.com/tobua/exmpl/blob/main/demo/index.tsx) for usage documentation.