@coveord/plasma-mantine
Version:
A Plasma flavoured Mantine theme
31 lines • 1.23 kB
TypeScript
import { AnchorProps, CompoundStylesApiProps, Factory, TooltipProps } from '@mantine/core';
import { ReactNode } from 'react';
export type HeaderDocAnchorStyleNames = 'docAnchorTooltip' | 'docAnchor';
export interface HeaderDocAnchorProps extends Pick<TooltipProps, 'position'>, CompoundStylesApiProps<HeaderDocAnchorFactory>, Omit<AnchorProps, 'classNames' | 'styles' | 'variant' | 'vars'> {
/**
* A href pointing to documentation related to the current panel.
* When provided, an info icon is rendered next to the title as link to this documentation
*/
href: string;
/**
* The tooltip text shown when hovering over the doc link icon
*/
label?: ReactNode;
/**
* React component to add the tooltip and anchor on
*/
children?: ReactNode;
}
export type HeaderDocAnchorFactory = Factory<{
props: HeaderDocAnchorProps;
ref: HTMLAnchorElement;
stylesNames: HeaderDocAnchorStyleNames;
compound: true;
}>;
export declare const HeaderDocAnchor: import("@mantine/core").MantineComponent<{
props: HeaderDocAnchorProps;
ref: HTMLAnchorElement;
stylesNames: HeaderDocAnchorStyleNames;
compound: true;
}>;
//# sourceMappingURL=HeaderDocAnchor.d.ts.map