diff --git a/package.json b/package.json index 1ad917f..c6d70fb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "private": false, "name": "bluelib", - "version": "0.12.2", + "version": "0.12.3", "license": "AGPL-3.0-or-later", "source": "src/index.js", "main": "dist/index.js", diff --git a/src/components/Layout/HButton.js b/src/components/Layout/HButton.js index fd8b61e..19c9df1 100644 --- a/src/components/Layout/HButton.js +++ b/src/components/Layout/HButton.js @@ -1,12 +1,22 @@ import style from './HButton.less'; +import {concatClass} from "../../index"; export default function (props) { + let validityClass = null; + if(props.validity === true) { + validityClass = style.valid; + } + else if(props.validity === false) { + validityClass = style.invalid; + } + + return (