Socket
Socket
Sign inDemoInstall

phy-stitches

Package Overview
Dependencies
5
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    phy-stitches

All-in-JS templating engine for you to write everything in JavaScript. No more HTML. No more CSS. Only JS!


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

phy-stitches

All-in-JS template engine for you to write everything in JavaScript. No more HTML. No more CSS. Only JavaScript!

phy-stitches depends on Emotion CSS-in-JS styling engine.

This project is a fork of phy minimal hyperscript helpers. It allows you to use minimalist h helper function to create React/Preact elements. With phy-stitches, the css prop gets parsed by Emotion, so you can write everything in JS!

Starters

To quickly get started with phy-stitches, feel free to clone the starters:

Examples

To style an element, simply pass css prop:

const h = require('phy-stitches');

module.exports = function SomeComponent() {
  return h('#foo', h('span.bar', { css: { color: 'red' } }, 'whee!'));
};

You can create elements without any props, same as phy.

const h = require('phy-stitches');

module.exports = function SomeComponent() {
  return h('#foo', h('span.bar', 'whee!'));
};

License

phy-stitches is a fork of phy which is under BSD-3-Clause license.

FAQs

Last updated on 15 Aug 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc