mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
use button component
This commit is contained in:
parent
65a802b005
commit
e4bda65be2
@ -1,6 +1,7 @@
|
|||||||
// Copyright 2024, Command Line Inc.
|
// Copyright 2024, Command Line Inc.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
import { Button } from "@/element/button";
|
||||||
import type { Placement } from "@floating-ui/react";
|
import type { Placement } from "@floating-ui/react";
|
||||||
import {
|
import {
|
||||||
arrow,
|
arrow,
|
||||||
@ -125,9 +126,14 @@ export const TooltipTrigger = React.forwardRef<HTMLElement, React.HTMLProps<HTML
|
|||||||
|
|
||||||
// Default trigger as a button
|
// Default trigger as a button
|
||||||
return (
|
return (
|
||||||
<button ref={setRefs} data-state={state.open ? "open" : "closed"} {...state.getReferenceProps(props)}>
|
<Button
|
||||||
|
className="grey"
|
||||||
|
ref={setRefs}
|
||||||
|
data-state={state.open ? "open" : "closed"}
|
||||||
|
{...state.getReferenceProps(props)}
|
||||||
|
>
|
||||||
{children}
|
{children}
|
||||||
</button>
|
</Button>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user