Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.
/ components Public archive

Component library for my personal website based on Web Components via Stencil

License

Notifications You must be signed in to change notification settings

simonknittel/components

Repository files navigation

simonknittel/components

This repository contains the interface component library for my personal website.

Under the hood the library makes use of Stencil for Web Components.

Latest release v0.8.2 MIT License

Disclaimer: Like my personal website, this component library is still under heavy development, so regular breaking changes can be expected. This won't change until version 1.0 releases.

Links

Usage

React

Install @simonknittel/components-react as dependency:

npm install @simonknittel/components-react

Add this to your JavaScript entry point:

import { applyPolyfills, defineCustomElements } from '@simonknittel/components/loader'

applyPolyfills().then(() => {
  defineCustomElements()
})

Import components like this:

import { SkBadge } from "@simonknittel/components-react"

export default function MyReactComponent() {
  return <SkBadge>Hello World!</SkBadge>
}

Contributing

See CONTRIBUTING.md