Rebuild all components
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 4s
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 4s
This commit is contained in:
@@ -2,13 +2,9 @@
|
||||
import { Tag } from "sigpro";
|
||||
|
||||
export const Indicator = (props, children) => {
|
||||
const { value, class: className, ...rest } = props;
|
||||
|
||||
return Tag("div", {
|
||||
...rest,
|
||||
class: "indicator"
|
||||
}, [
|
||||
value ? Tag("span", { class: `indicator-item badge ${className || ''}`.trim() }, value) : null,
|
||||
children === undefined && (children = props, props = {});
|
||||
return Tag("div", { ...props, class: `indicator ${props.class ?? ''}` }, [
|
||||
props.value ? Tag("span", { class: `indicator-item badge ${props.class ?? ''}` }, props.value) : null,
|
||||
children
|
||||
]);
|
||||
};
|
||||
Reference in New Issue
Block a user