8000 GitHub - electrikmilk/javascript-ui at aff13123fef8c94dee9f6ec9e73a3ad8b59591b6
[go: up one dir, main page]

Skip to content

electrikmilk/javascript-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript UI

License Version

Javascript UI is a JavaScript framework. It describes HTML and CSS in Javascript simliar to SwiftUI.

  • Useful shorthands for HTML tags and css properties
  • Built-in standard animations like rotate, fade, flip, shake, and more...
  • Built-in CSS tricks like truncation, font smoothing, fit, etc.
  • CSS properties are abtracted into views and stacks like ScrollView, GridStack, HStack, VStack, etc.
  • Built-in router
  • Store and state management

PlaygroundDocumentation

Usage

Install via NPM:

npm i javascript-ui

Import and add elements to the view() function.

import {view, Section, Paragraph} from 'javascript-ui';

view([
    Section([
        Paragraph('Hello, World!')
            .textColor('green')
    ])
]);

Resulting HTML:

<section>
    <p style="color: green;">Hello, World!</p>
</section>

Result in browser:

Example


This project aims to create a framework that allows you to create UI in a way that feels natural and easy.

Packages

No packages published
0