https://github.com/abakermi/fb-msg-slide
A slide component with extra actions built with StencilJS
https://github.com/abakermi/fb-msg-slide
fb ionic messenger slider stenciljs webcomponents
Last synced: 17 days ago
JSON representation
A slide component with extra actions built with StencilJS
- Host: GitHub
- URL: https://github.com/abakermi/fb-msg-slide
- Owner: abakermi
- License: mit
- Created: 2020-03-25T20:05:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T16:22:21.000Z (over 2 years ago)
- Last Synced: 2025-03-16T23:42:57.232Z (4 months ago)
- Topics: fb, ionic, messenger, slider, stenciljs, webcomponents
- Language: TypeScript
- Size: 3.22 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 23
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
 [](https://github.com/ellerbrock/open-source-badges/)
# Facebook Messenger Slide Component [](https://travis-ci.com/abakermi/fb-msg-slide) [](https://badge.fury.io/js/fb-msg-slide)
A slide component with extra actions built with StencilJS
## Getting Started
to use this component inside your project run the follwing command
```bash
npm install --save fb-msg-slide
```
To view the build, start an HTTP server inside of the /www directory.
```bash
npm install
npm start
```To build the component for production, run:
```bash
npm run build
```To run the unit tests for the components, run:
```bash
npm test
```Need help? Check out our docs [here](https://stenciljs.com/docs/my-first-component).
## Using this component
### Script tag
Put this script `` in the head of your index.html
```html
![]()
M.John
Lorem ipsum dolor sit.
```
### Node (ionic)
register component in ```main.ts ```
```js//main.ts
import { defineCustomElements } from 'fb-msg-slide/loader';//...
defineCustomElements()
```
add ```CUSTOM_ELEMENTS_SCHEMA``` to your module```js
//yourmodule.ts
//...schemas: [CUSTOM_ELEMENTS_SCHEMA]
```
use it !```html
```
## LicenseMIT © [Abdelhak Akermi](https://github.com/abakermi)