diff --git a/src/components/Button/Readme.md b/src/components/Button/Readme.md new file mode 100644 index 0000000..a7ff27a --- /dev/null +++ b/src/components/Button/Readme.md @@ -0,0 +1,26 @@ +A clickable button that should trigger an action on click. + +```jsx +import Bluelib from "../Bluelib"; +import Color from "../Color"; + + +

+ +

+

+ + + +

+

+ +

+
+``` diff --git a/src/components/Button/index.js b/src/components/Button/index.js new file mode 100644 index 0000000..59d2fb5 --- /dev/null +++ b/src/components/Button/index.js @@ -0,0 +1,12 @@ +import React from "react" +import useBluelibClassNames from "../../hooks/useBluelibClassNames" +import classNames from "classnames" + + +export default function Button({children, className, disabled, ...props}) { + return ( + + ) +} diff --git a/src/components/ButtonToggle/Readme.md b/src/components/ButtonToggle/Readme.md new file mode 100644 index 0000000..7efbbb8 --- /dev/null +++ b/src/components/ButtonToggle/Readme.md @@ -0,0 +1,38 @@ +A clickable button that should trigger an action on click. + +```jsx +import Bluelib from "../Bluelib"; +import Color from "../Color"; + + +

+ + On + +   + + Off + +

+

+ + + On + +   + + Off + + +

+

+ + On + +   + + Off + +

+
+``` diff --git a/src/components/ButtonToggle/index.js b/src/components/ButtonToggle/index.js new file mode 100644 index 0000000..686f5f4 --- /dev/null +++ b/src/components/ButtonToggle/index.js @@ -0,0 +1,23 @@ +import React from "react" +import useBluelibClassNames from "../../hooks/useBluelibClassNames" +import classNames from "classnames" +import Button from "../Button" + + +export default function ButtonToggle({children, className, disabled, value, ...props}) { + return ( + + ) +} diff --git a/src/components/Color/index.js b/src/components/Color/index.js index 10c03db..e3bda76 100644 --- a/src/components/Color/index.js +++ b/src/components/Color/index.js @@ -24,8 +24,6 @@ export default function Color({children, builtin, custom}) { extraStyle["--bluelib-color-b"] = c.blue() } - console.log(`Builtin: ${builtin} → ${extraClassName}\nCustom: ${custom} → ${JSON.stringify(extraStyle)}`) - children = React.Children.map(children, child => { if(!child.props) { return child;