MCPcopy Create free account
hub / github.com/cartesiancs/map3d / Button

Function Button

src/components/button/BottomButton.tsx:86–117  ·  view source on GitHub ↗
(props: ButtonProps)

Source from the content-addressed store, hash-verified

84}
85
86export function Button(props: ButtonProps) {
87 return (
88 <button
89 css={css({
90 zIndex: 9999,
91 color: "#000000",
92 backgroundColor: "#ffffff96",
93 backdropFilter: "blur(8px)",
94 border: "none",
95 padding: "0.75rem 1.25rem",
96 borderRadius: "8px",
97 fontWeight: "300",
98 fontSize: "14px",
99 outline: "rgba(240, 240, 244, 0.51) solid 0.1rem",
100 cursor: "pointer",
101 transition: "0.2s",
102 display: props.isShow ? "" : "none",
103 gap: "0.5rem",
104 ":hover": {
105 backgroundColor: "#ebeef0c2",
106 },
107 ":disabled": {
108 backgroundColor: "#ebeef0c2",
109 cursor: "not-allowed",
110 },
111 })}
112 {...props}
113 >
114 {props.children}
115 </button>
116 );
117}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected