Skip to content
This repository has been archived by the owner on May 22, 2020. It is now read-only.

Latest commit

 

History

History
119 lines (96 loc) · 6.88 KB

block.md

File metadata and controls

119 lines (96 loc) · 6.88 KB

Block

Blocks are logical units that arrange content on pages. They are rendered (on the page) as the section tag with the height=("100vh"). Blocks are composite elements. They can contain other elements.

block

Usage

import React from 'react';
import ReactDom from 'react-dom';
import { Block, Text } from '@quarkly/elements';

ReactDom.render(
  <Block border="2px solid royalblue">
    <Text variant="h1" m="0" textAlign="center">
      Block
    </Text>
  </Block>
  document.getElementById('root'),
);

Props

Style props

Base

  • variant

Layout

Spaces

Flex

Grid

Background

Misc

Position