mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
5128730fd2
commit
76c11aa697
6 files changed
+32
-15
No files matched your search
@@ -3,4 +3,4 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
|
||||
export * from "./src/button";
|
||||
export * from "./src/button";
|
||||
@@ -27,14 +27,35 @@ export interface ButtonProps extends ButtonHTMLAttributes<any> {
|
||||
|
||||
export const Button = withTooltip((props: ButtonProps) => {
|
||||
const {
|
||||
waiting, label, primary, accent, plain, hidden, active, big,
|
||||
round, outlined, light, children, ...btnProps
|
||||
waiting,
|
||||
label,
|
||||
primary,
|
||||
accent,
|
||||
plain,
|
||||
hidden,
|
||||
active,
|
||||
big,
|
||||
round,
|
||||
outlined,
|
||||
light,
|
||||
children,
|
||||
...btnProps
|
||||
} = props;
|
||||
|
||||
if (hidden) return null;
|
||||
if (hidden) {
|
||||
return null;
|
||||
}
|
||||
|
||||
btnProps.className = cssNames("Button", btnProps.className, {
|
||||
waiting, primary, accent, plain, active, big, round, outlined, light,
|
||||
waiting,
|
||||
primary,
|
||||
accent,
|
||||
plain,
|
||||
active,
|
||||
big,
|
||||
round,
|
||||
outlined,
|
||||
light,
|
||||
});
|
||||
|
||||
// render as link
|
||||
|
||||
@@ -3,12 +3,10 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
|
||||
const path = require('path');
|
||||
const path = require("path");
|
||||
|
||||
module.exports = {
|
||||
content: [
|
||||
path.join(__dirname, "src/**/*.tsx")
|
||||
],
|
||||
content: [path.join(__dirname, "src/**/*.tsx")],
|
||||
darkMode: "class",
|
||||
theme: {
|
||||
fontFamily: {
|
||||
|
||||
Reference in new issue
Block a user