@artifak/block
v1.1.6
Published
Basic React component primitive for handling spacing
Maintainers
Readme
@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/blockNPM
npm install @artifak/blockUsage
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);