Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 868 Bytes

README.md

File metadata and controls

42 lines (30 loc) · 868 Bytes

dmenu-react

A dmenu like navbar component written in React.

example

Made with create-react-library

Usage

import React, { Component } from 'react'

import DMenu from 'dmenu-react'
import 'dmenu-react/dist/index.css'

const menuElement = [{
    name: "home",
    url: "/"
},
{
    name: "blog",
    url: "/blog"
}]
class Example extends Component {
    render() {
        return <DMenu menu={menuElement} active={0} />
    }
}

License

MIT © lucarin91