diff --git a/src/components/CustomInput.js b/src/components/CustomInput.js new file mode 100644 index 000000000..848458821 --- /dev/null +++ b/src/components/CustomInput.js @@ -0,0 +1,3 @@ +import CustomInput from 'reactstrap/lib/CustomInput'; + +export default CustomInput; diff --git a/src/index.js b/src/index.js index 3d3a8d863..6507990e3 100755 --- a/src/index.js +++ b/src/index.js @@ -22,6 +22,7 @@ import CardTitle from './components/CardTitle'; import Col from './components/Col'; import Collapse from './components/Collapse'; import Container from './components/Container'; +import CustomInput from './components/CustomInput'; import Dropdown from './components/Dropdown'; import DropdownItem from './components/DropdownItem'; import DropdownMenu from './components/DropdownMenu'; @@ -154,6 +155,7 @@ export { Col, Collapse, Container, + CustomInput, Dropdown, DropdownItem, DropdownMenu, diff --git a/stories/Input.js b/stories/Input.js new file mode 100644 index 000000000..2fe99db1a --- /dev/null +++ b/stories/Input.js @@ -0,0 +1,96 @@ +import React from 'react'; +import { CustomInput, FormLabelGroup } from '../src'; +import { storiesOf } from '@storybook/react'; +import { boolean, select, text } from '@storybook/addon-knobs'; + +storiesOf('Input', module).addWithInfo('Custom Input', () => ( +
+ For more customization and cross browser consistency, Bootstrap has custom form elements + to replace the browser defaults. They’re built on top of semantic and accessible markup, + so they’re safe replacements for default form controls. +
+