This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

nocta-tags
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Nocta-Tags

This package provides an HTML Tags shorthand set for nocta package.

Deprecated

This package is deprecated. Use Yandel package.

Table of Contents

Installation

Add this package to your npm project as well as nocta:

npm install nocta-tags

Usage

Use the HTML tags in your nocta project:

import { div, button } from "nocta-tags";

const CartButton: Nocta.Template<Nocta.Tag<"div">> = () => {
  const handleClickCardButton = () => {
    console.log("Card button click");
  };
  return div(
    {
      style: {
        backgroundColor: "black",
      },
    },
    [
      button(
        {
          onclick: handleClickCardButton,
        },
        ["Add to cart"]
      ),
    ]
  );
};

Package Sidebar

Install

npm i nocta-tags

Weekly Downloads

10

Version

1.1.0

License

ISC

Unpacked Size

69.5 kB

Total Files

5

Last publish

Collaborators

  • zzzeros0