1.0.0 • Published 3 years ago
@jswork/react-ant-url-input v1.0.0
react-ant-url-input
Url input for ant.
installation
npm install antd@3
npm install -S @jswork/react-ant-url-input
properties
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
license
Code released under the MIT license.
1.0.0
3 years ago