mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
16 lines
376 B
TypeScript
16 lines
376 B
TypeScript
import React from 'react';
|
|
import { cx, css } from '@emotion/css';
|
|
|
|
type Props = {
|
|
name: string;
|
|
isInitial?: boolean;
|
|
};
|
|
|
|
const uppercaseClass = css({
|
|
textTransform: 'uppercase',
|
|
});
|
|
|
|
export const SectionLabel = ({ name, isInitial }: Props) => (
|
|
<label className={cx('gf-form-label query-keyword', { 'width-7': isInitial ?? false }, uppercaseClass)}>{name}</label>
|
|
);
|