diff --git a/client/App.jsx b/client/App.jsx index 941e6e1..818863b 100644 --- a/client/App.jsx +++ b/client/App.jsx @@ -4,6 +4,7 @@ import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'; import Home from './Home'; import Badge from './layouts/Badge'; import Centering from './layouts/Centering'; +import InputAddon from './layouts/InputAddon'; import Sidebar from './layouts/Sidebar'; import StepperInput from './layouts/StepperInput'; import StickyFooter from './layouts/StickyFooter'; @@ -16,6 +17,7 @@ const App = () => { + diff --git a/client/Home.jsx b/client/Home.jsx index 0a368aa..d290548 100644 --- a/client/Home.jsx +++ b/client/Home.jsx @@ -3,6 +3,7 @@ import { Link } from 'react-router-dom'; import BadgeCover from './covers/BadgeCover'; import CenterCover from './covers/CenterCover'; +import InputAddonCover from './covers/InputAddonCover'; import SidebarCover from './covers/SidebarCover'; import StickyFooterCover from './covers/StickyFooterCover'; import StickyHeaderCover from './covers/StickyHeaderCover'; @@ -68,6 +69,12 @@ const Home = () => {

Centering

+
+ + +

Input addon

+ +
diff --git a/client/covers/InputAddonCover.jsx b/client/covers/InputAddonCover.jsx new file mode 100644 index 0000000..24fbb2c --- /dev/null +++ b/client/covers/InputAddonCover.jsx @@ -0,0 +1,23 @@ +import React from 'react'; + +import Frame from '../placeholders/Frame'; +import Line from '../placeholders/Line'; + +const InputAddonCover = () => { + return ( + +
+
+
+
+ +
+
+
+
+
+ + ); +}; + +export default InputAddonCover; diff --git a/client/layouts/InputAddon.jsx b/client/layouts/InputAddon.jsx new file mode 100644 index 0000000..a2a3264 --- /dev/null +++ b/client/layouts/InputAddon.jsx @@ -0,0 +1,136 @@ +import React from 'react'; + +import DetailsLayout from '../DetailsLayout'; +import BrowserFrame from '../placeholders/BrowserFrame'; +import Rectangle from '../placeholders/Rectangle'; +import SampleCode from '../SampleCode'; +import useDocumentTitle from '../useDocumentTitle'; + +const InputAddon = () => { + useDocumentTitle('CSS Layout ∙ Input add-on'); + + return ( + +

Input add-on

+ +
+
+
+ +
+ +
+
+ +
+ +
+
+
+
+ +
+ +
+ +
+
+
+
+ } + source={ + +
+ +
+ ... +
+ + + +
+ + +
+ + + + +
+ ... +
+
+ + +
+ +
+ ... +
+ + + + + +
+ ... +
+
+`} +/> + } + /> + + ); +}; + +export default InputAddon;