Reflex
  • Blocks
    • Header
    • Hero
    • Features
    • Call to action
    • Forms
    • Pricing
    • Team
    • Testimonials
    • Cards
    • Footer
    • Posts
    • Videos
  • Examples
  • Learn
  • Videos
  • Docs
  • Theme

    Theme reference

    • Colors
    • Font family
    • Font size
    • Font weight
    • Line height
    • Box shadow
    Create a theme Extend base
arshadcnv0.5.3
Reflex
Reflex

Blocks

Using blocks to build pages.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

Create a block

Group components together in a block and use them on pages.

Blocks are placed in the content/blocks directory.

Add a new card.mdx block.

mysite
└── content
└── blocks
└── card.mdx

Add the following content to it.

<Div borderWidth="1px" rounded="5px">
<Image src="placeholder.jpg" />
<Div p="6">
<H4 my="0">Heading</H4>
<P mb="0">This is some text.</P>
</Div>
</Div>

You can read more on the Image component and images in the docs.

Use the block on a page.

To use a block, you use the Block component and the block name.

<Block src="card" />

Heading

This is some text.

ThemingDynamic blocks

© 2020 Reflex

  • Blocks
  • Examples
  • Learn
  • Docs
  • Github