The spring-components module is a proof of concept to see whether or not it is possible to build a scalable web component library with StencilJS which can then be used without hassle in existing projects regardless of the tooling.
- Clone the repository
git clone https://github.com/spring-media/spring-components
cd
into/spring-components
- Install the necessary dependencies
yarn
- Start the development server
yarn start
cd
into/react-demo
- Install the necessary dependencies
yarn
- Start the development server
yarn start
cd
into/vue-demo
- Install the necessary dependencies
yarn
- Start the development server
yarn start
Requires a set of <span>
elements with the class name of .item
<spring-marquee>
<span class="item">Web Components</span>
<span class="item">React</span>
<span class="item">Vue</span>
</spring-marquee>
Requires plain text and has an optional subtitle
prop
<spring-live-ticker subtitle="This just in:">
Web Components are useful
</spring-live-ticker>
Takes an ISO 3166 Alpha-2 code as a prop
<spring-graphql country-code="DE" />
Requires a source prop
<spring-video source="SOURCE_TO_YOUR_VIDEO_FILE" />