3.1.0 • Published 3 months ago

exmpl v3.1.0

Weekly downloads
12
License
MIT
Repository
github
Last release
3 months ago

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

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

createRoot(document.body).render(
  <Exmpl title="exmpl Demo" npm="exmpl" github="tobua/exmpl">
    <p>This is the introduction.</p>
    <h2>Installation & Usage</h2>
    <Code>{`npm i exmpl`}</Code>
  </Exmpl>
)

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

<Exmpl title={<h4>Title</h4>} icons={<a href="google.com">Google</a>} npm="exmpl" />

Elements

Includes Button, Input, Grid, Code and Tabs elements, refer to the Demo for usage documentation.

3.1.0

3 months ago

3.0.0

2 years ago

2.2.1

3 years ago

2.2.0

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.3

4 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago