0.0.15 • Published 5 years ago

mdx-blocks v0.0.15

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

icon

MDX Blocks

A wild new way to build websites EXPERIMENTAL

build status version MIT License

https://mdx-blocks.netlify.com

npm i mdx-blocks

Import and use MDX Blocks as layout components

import { Bar } from 'mdx-blocks'

export default props =>
  <Bar
    {...props}
  />

# Hello

- [Link](/)
- [Click](/click)
- [Beep](/beep)

Create a block for each section of a page

import { Banner } from 'mdx-blocks'
export default Banner

# Hello

This is a banner with a background image.

![](kitten.png)
// Combine blocks together to create a page
import { BlocksProvider } from 'mdx-blocks'
import Header from './header.mdx'
import Banner from './banner.mdx'

export default props =>
  <BlocksProvider>
    <Header />
    <Banner />
  </BlocksProvider>

Features

  • Write content in markdown and use React components inline with MDX
  • Customize the look and feel with theming
  • Create custom block layouts with minimal effort
  • Quickly swap out the layout of blocks without touching the content

Get Started

Read the docs


Related

Code of Conduct MIT License

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago