Files
2021-04-07 08:42:43 +03:00

17 lines
587 B
TypeScript

import { Button, ButtonProps } from '@grafana/ui/src/components/Button';
import React, { FC } from 'react';
import { css, cx } from '@emotion/css';
import { GrafanaTheme } from '@grafana/data';
import { useStyles } from '@grafana/ui';
type Props = Omit<ButtonProps, 'variant' | 'size'>;
export const ActionButton: FC<Props> = ({ className, ...restProps }) => (
<Button variant="secondary" size="xs" className={cx(useStyles(getStyle), className)} {...restProps} />
);
export const getStyle = (theme: GrafanaTheme) => css`
height: 24px;
font-size: ${theme.typography.size.sm};
`;