Skip to content
@substrate-system

Substrate System

Front-end components

substrate system

Building blocks for the frontend.

Web components

featuring

see also

Conventions

There is a strict convention with how these components are factored. To keep server-side rendering easy, an isomorphic file is exposed at /ssr. This file exposes a single function , html, that takes attributes as an object and returns a string of HTML.

The frontend component uses this to render itself in the connectedCallback function.

This makes it easy to render a component serverside. Just import the /ssr path:

import { html } from '@substrate-system/example-component/ssr'

// return an HTML string
html({
    disabled: true,
    placeholder: 'hello'
})

Misc

Some other frontend libraries:

Pinned Loading

  1. template-web-component template-web-component Public template

    A template for web components

    TypeScript 1

  2. web-component web-component Public

    Minimal parent web component to inherit from

    TypeScript

  3. debug debug Public

    Debug utility

    TypeScript 1

  4. tonic tonic Public

    Forked from socketsupply/tonic

    A Low Profile Component Framework – Stable, minimal, easy to audit, zero-dependencies and build-tool-free.

    JavaScript 3

  5. a11y a11y Public

    Helpers for accessibility

    JavaScript

  6. tapzero tapzero Public

    Forked from socketsupply/tapzero

    Zero dependency test framework

    JavaScript

Repositories

Showing 10 of 96 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…