The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
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.
 
 
 
 
 
 
grafana/public/app/features/dashboard/components/DashboardSettings/ListNewButton.tsx

24 lines
664 B

import { css } from '@emotion/css';
import React, { ButtonHTMLAttributes } from 'react';
import { GrafanaTheme } from '@grafana/data';
import { Button, useStyles } from '@grafana/ui';
export interface Props extends ButtonHTMLAttributes<HTMLButtonElement> {}
export const ListNewButton: React.FC<Props> = ({ children, ...restProps }) => {
const styles = useStyles(getStyles);
return (
<div className={styles.buttonWrapper}>
<Button icon="plus" variant="secondary" {...restProps}>
{children}
</Button>
</div>
);
};
const getStyles = (theme: GrafanaTheme) => ({
buttonWrapper: css`
padding: ${theme.spacing.lg} 0;
`,
});