1.1.6 • Published 3 years ago
@artifak/block v1.1.6
@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);