forked from grafana.jool/grafana-jool
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
502 B
16 lines
502 B
import React, { FC } from 'react';
|
|
import { useStyles } from '@grafana/ui';
|
|
import { GrafanaTheme } from '@grafana/data';
|
|
import { css } from '@emotion/css';
|
|
|
|
const getStyles = (theme: GrafanaTheme) => css`
|
|
margin: 0;
|
|
margin-left: ${theme.spacing.md};
|
|
font-size: ${theme.typography.size.sm};
|
|
color: ${theme.colors.textWeak};
|
|
`;
|
|
|
|
export const DetailText: FC = ({ children }) => {
|
|
const collapsedTextStyles = useStyles(getStyles);
|
|
return <p className={collapsedTextStyles}>{children}</p>;
|
|
};
|
|
|