All Projects → orizens → affinity

orizens / affinity

Licence: MIT License
affinity is a case study: an attempt to create a simple component based library

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to affinity

Fast
The adaptive interface system for modern web experiences.
Stars: ✭ 6,532 (+34278.95%)
Mutual labels:  component-library, component-architecture
Semantic Ui React
The official Semantic-UI-React integration
Stars: ✭ 12,561 (+66010.53%)
Mutual labels:  component-library, frontend-framework
fast-blazor
Blazor component library for FluentUI. Microsoft's official lightweight wrapper around the FluentUI Web Components for use with .NET 6.0 Blazor applications
Stars: ✭ 928 (+4784.21%)
Mutual labels:  component-library, component-architecture
polarwind
Envoy's product component library
Stars: ✭ 17 (-10.53%)
Mutual labels:  component-library
react4j
An opinionated react java binding
Stars: ✭ 33 (+73.68%)
Mutual labels:  frontend-framework
bootstrap-vue-3
Early (but lovely) implementation of Vue 3, Bootstrap 5 and Typescript
Stars: ✭ 314 (+1552.63%)
Mutual labels:  component-library
carbon-components-vue
⛰️Carvue.js -- Carbon design for VueJS
Stars: ✭ 104 (+447.37%)
Mutual labels:  component-library
smores-react
🍭 Marshmallow React components
Stars: ✭ 34 (+78.95%)
Mutual labels:  component-library
core
The framework for huge projects, with a focus on maintainability
Stars: ✭ 18 (-5.26%)
Mutual labels:  component-library
catchflicks
🎬 Kitchen sink project for learning android concepts 🎬
Stars: ✭ 12 (-36.84%)
Mutual labels:  component-architecture
sapling
🌿 Sapling is a Node.js framework for faster-than-light web development.
Stars: ✭ 13 (-31.58%)
Mutual labels:  frontend-framework
jui-grid
JUI grid can handle millions of data, and can display the data in a hierarchical structure.
Stars: ✭ 12 (-36.84%)
Mutual labels:  component-library
Hisar
🏰 Hisar: Cross-Platform Modular Component Development Infrastructure
Stars: ✭ 19 (+0%)
Mutual labels:  component-architecture
react-component-library-lerna
Build your own React component library managed with lerna, presented with storybook and published in private npm registry.
Stars: ✭ 55 (+189.47%)
Mutual labels:  component-library
clockface
UI Kit for building Chronograf
Stars: ✭ 33 (+73.68%)
Mutual labels:  component-library
next-gen-ui
www.npmjs.com/package/next-gen-ui
Stars: ✭ 24 (+26.32%)
Mutual labels:  component-library
ungeui
A Vue 3 Component Library
Stars: ✭ 23 (+21.05%)
Mutual labels:  component-library
taiga-ui
Angular UI Kit and components library for awesome people
Stars: ✭ 2,251 (+11747.37%)
Mutual labels:  component-library
skawa components example
Examples for skawa_components
Stars: ✭ 16 (-15.79%)
Mutual labels:  component-library
active event store
Rails Event Store in a more Rails way
Stars: ✭ 121 (+536.84%)
Mutual labels:  component-architecture

affinity

affinity is an attempt to create a simple component based library with few time savers (event binding, store etc..)

What's included

  1. component
  2. store (mutiple)
  3. app (multiple)
  4. simple event binding
  5. component template is string literal

Component demo

import { app, component } from './affinity';

export const AfCardComponent = component({
  tag: 'af-card',
  view({ img = '', url = '', onGo, ...props }) {
    return {
      template: `
      <div class="card"
        @click="handleOnClick">
        <img class="card-img-bottom" src="${img}" alt="Card image cap">
        <div class="card-body">
          <af-title title="The Card Title"></af-title>
          <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
          <button class="btn btn-primary">Go To ${url}</button>
        </div>
      </div>
    `,
      handleOnClick(ev) {
        onGo(url);
      }
    };
  }
});

Live Demo

https://stackblitz.com/edit/typescript-ak7kpp

Run This Repo

  1. npm i
  2. npm start
  3. open http://localhost:3000
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].