antd-navbutton

react-router navigation button in antd style.

Usage no npm install needed!

<script type="module">
  import antdNavbutton from 'https://cdn.skypack.dev/antd-navbutton';
</script>

README

antd-navbutton

react-router navigation button in antd style.

Installation

yarn add antd-navbutton

Usage

import { NavButton } from "antd-navbutton";
const button = <NavButton to="/home" replace={false} />;

NavButton component is fully compatible with antd's Button. Usage consistent with Button and Link. When you click NavButton, the button's onClick event is fired first, then the navigation event is fired.

References:

react-router-dom Link component

antd Button component

License

MIT