mirror of https://github.com/ANL-CEEESA/RELOG.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
888 B
26 lines
888 B
import type { ControlButtonProps } from './types';
|
|
/**
|
|
* You can add buttons to the control panel by using the `<ControlButton />` component
|
|
* and pass it as a child to the [`<Controls />`](/api-reference/components/controls) component.
|
|
*
|
|
* @public
|
|
* @example
|
|
*```jsx
|
|
*import { MagicWand } from '@radix-ui/react-icons'
|
|
*import { ReactFlow, Controls, ControlButton } from '@xyflow/react'
|
|
*
|
|
*export default function Flow() {
|
|
* return (
|
|
* <ReactFlow nodes={[...]} edges={[...]}>
|
|
* <Controls>
|
|
* <ControlButton onClick={() => alert('Something magical just happened. ✨')}>
|
|
* <MagicWand />
|
|
* </ControlButton>
|
|
* </Controls>
|
|
* </ReactFlow>
|
|
* )
|
|
*}
|
|
*```
|
|
*/
|
|
export declare function ControlButton({ children, className, ...rest }: ControlButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
//# sourceMappingURL=ControlButton.d.ts.map
|