Skip to content

Change ghost warning button to default antd ghost

License

Notifications You must be signed in to change notification settings

oeduardomarinho/antd-button-color

 
 

Repository files navigation

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

About

Change ghost warning button to default antd ghost

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 62.5%
  • Less 20.3%
  • TypeScript 12.9%
  • JavaScript 4.3%