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.
16 lines
587 B
16 lines
587 B
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};
|
|
`;
|
|
|