synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
27 lines • 846 B
TypeScript
import { ButtonProps } from '@mui/material';
export type QueryCountButtonProps = {
/**
* The SQL query to execute to get the count
*/
sql: string;
/**
* The target URL when the button is clicked
*/
href: string;
/**
* Text to display before the count (e.g., "Explore")
*/
prefixText?: string;
/**
* Text to display after the count (e.g., "files")
*/
suffixText?: string;
} & Omit<ButtonProps, 'children'>;
/**
* A button component that displays text with an inline count.
* The count is fetched by executing a SQL query against a Synapse table.
* Example: "Explore 42 files"
*/
export declare function QueryCountButton(props: QueryCountButtonProps): import("react/jsx-runtime").JSX.Element;
export default QueryCountButton;
//# sourceMappingURL=QueryCountButton.d.ts.map