Code Monkey home page Code Monkey logo

antd-button-color's Introduction

antd-button-color

npm version License

Simple button for Ant Design react with more color like default, primary, success, warning, info, dark, lightdark.

DEMO

ImageDemo

Features

  • More color for button (primary, success, warning, info, dark, lightdark, default).

Installation

Note: install Ant Design (required).

$ npm install antd
//or
$ yarn add antd

Next install using npm:

$ npm install antd-button-color

If using yarn:

$ yarn add antd-button-color

Usage

Import Style css or less

//import css or less
import 'antd/dist/antd.css'; // or 'antd/dist/antd.less'
import 'antd-button-color/dist/css/style.css'; // or 'antd-button-color/dist/css/style.less'

// global vars in less
// @success-color: #28a745;
// @warning-color: #eca52b;
// @info-color: #17a2b8;
// @dark-color: #343a40;
// @light-dark-color: #6c757d;

Usage in jsx or tsx

//esm or ts
import Button from "antd-button-color";

//example usage
<Button type="primary">Primary Button</Button>
<Button type="success">Success Button</Button>
<Button type="info">Info Button</Button>
<Button type="warning">Warning Button</Button>
<Button type="dark">Dark Button</Button>
<Button type="lightdark">Lightdark Button</Button>
<Button type="default">Deafult Button</Button>

//with dashed
<Button with="dashed" type="success">Success Dashed Button</Button>

//with link
<Button with="link" type="info">Info Link Button</Button>

License

MIT

antd-button-color's People

Contributors

herudi avatar paul-vd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

antd-button-color's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.