@artifak/block
TypeScript icon, indicating that this package has built-in type declarations

1.1.6 • Public • Published

@artifak/block (Deprecated from v2.0.0)

Block is a basic block component that acts as a base to your UI components. You can also view the docs at Artifak Block.

Installation

Yarn

yarn add @artifak/block

NPM

npm install @artifak/block

Usage

Below is an example of how you may use it.

import { createBlockComponents } from '@artifak';

const blockStyles = {
  Article: {
    margin: 0,
    padding: [15, 30]
    as: 'article',
  },
};

const { Article } = createBlockComponents<typeof blockStyles>(blockStyles);

Package Sidebar

Install

npm i @artifak/block

Weekly Downloads

0

Version

1.1.6

License

MIT

Unpacked Size

403 kB

Total Files

17

Last publish

Collaborators

  • heyjules