@jswork/react-ant-url-input
v1.0.0
Published
Url input for ant.
Downloads
7
Readme
react-ant-url-input
Url input for ant.
installation
npm install antd@3
npm install -S @jswork/react-ant-url-inputproperties
| Name | Type | Required | Default | Description | | ------------ | ------ | -------- | ------- | ------------------------------------- | | className | string | false | - | The extended className for component. | | onAddonClick | func | false | - | When addonAfter button click. |
usage
- import css
@import "~@jswork/react-ant-url-input/dist/style.css";
// or use sass
@import "~@jswork/react-ant-url-input/dist/style.scss";
// customize your styles:
$react-ant-url-input-options: ()- import js
import ReactDemokit from '@jswork/react-demokit';
import React from 'react';
import ReactDOM from 'react-dom';
import ReactAntUrlInput from '@jswork/react-ant-url-input';
import './assets/style.scss';
class App extends React.Component {
render() {
return (
<ReactDemokit
className="p-3 app-container"
url="https://github.com/afeiship/react-ant-url-input">
<ReactAntUrlInput />
</ReactDemokit>
);
}
}
ReactDOM.render(<App />, document.getElementById('app'));
documentation
- https://afeiship.github.io/react-ant-url-input/
license
Code released under the MIT license.
