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

https://github.com/sneas/x-ray

Display HTML/Web component and show/hide it's code
https://github.com/sneas/x-ray

html stenciljs web-components

Last synced: about 1 month ago
JSON representation

Display HTML/Web component and show/hide it's code

Awesome Lists containing this project

README

          

# \

[![version](https://img.shields.io/npm/v/@sneas/x-ray.svg?style=flat-square)](http://npm.im/@sneas/x-ray)

Probably, the easiest way to demo HTML/Web components.

Demo: [https://sneas.github.io/x-ray](https://sneas.github.io/x-ray)

## Installation

### HTML

```html

```

### NodeJS

```sh
npm install @sneas/x-ray --save
```

Add import within the root component:

```js
import '@sneas/x-ray';
```

## Usage

```html





Holy guacamole! You should check out the code of this
alert component below.

×


```

⚠️ Make sure the code has been wrapped with `` tag.

The result of the code from above:

![Preview of Bootstrap 4 Alert Component](docs/bootstrap-alert.gif)