Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@cascadiajs/q-and-a

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cascadiajs/q-and-a

A web component to manage audience questions during a live streamed event

npmnpm
Version
0.0.5
Version published
Weekly downloads
2
-90%
Maintainers
3
Weekly downloads
 
Created
Source

Built With Stencil Tests commitlint Commitizen friendly

CascadiaJS Logo

Q&A Component

A web component to manage audience questions during a live streamed event.

Using the component

To use the component in one of your projects, include a script tag in the <head> of your index.html file.

<script type="module">
  import { defineCustomElements } from 'https://cdn.jsdelivr.net/npm/@cascadiajs/q-and-a/loader/index.es2017.js';
  defineCustomElements();
</script>

If your application does not support modules or you want to add a fallback for older browsers include this script.

<script nomodule src="https://unpkg.com/@cascadiajs/q-and-a/dist/q-and-a/q-and-a.js"></script>

Then you can use the element anywhere in your template, JSX, html etc.

<q-and-a user-id="my-user" correlation-id="my-id"></q-and-a>

Please see the documentation regarding the individual options for the component here.

Development

Stencil

This component was built with Stencil.

Stencil is a compiler for building fast web apps using Web Components.

Stencil combines the best concepts of the most popular frontend frameworks into a compile-time rather than run-time tool. Stencil takes TypeScript, JSX, a tiny virtual DOM layer, efficient one-way data binding, an asynchronous rendering pipeline (similar to React Fiber), and lazy-loading out of the box, and generates 100% standards-based Web Components that run in any browser supporting the Custom Elements v1 spec.

Stencil components are just Web Components, so they work in any major framework or with no framework at all.

Getting Started

npm ci
npm start

To build the component for production, run:

npm run build

To run the unit tests for the components, run:

npm test

Need help? Check out our docs here.

Contributing

Code of Conduct

We love contributions! Please be sure to read CONTRIBUTING.md prior to opening any pull requests or creating issues.

Keywords

web component

FAQs

Package last updated on 14 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts