frame-placer
Version:
Place turbo-frame tags into your DOM
27 lines (16 loc) • 492 B
Markdown
# FramePlacer
FramePlacer is a library for replacing `turbo-frame` elements.
## Installation
```bash
npm install frame-placer
```
## Usage
```javascript
import FramePlacer from "frame-placer";
html = '<turbo-frame id="some-frame-id">Incoming frame in DOM</turbo-frame>';
FramePlacer.replace(html);
```
## Contributing
Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.
Please make sure to update tests as appropriate.