mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
21 lines
369 B
TypeScript
21 lines
369 B
TypeScript
|
|
import { css } from '@emotion/css';
|
||
|
|
import React from 'react';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* A simple "flex: 1;" component you can use in combination with the Stack component(s), like so
|
||
|
|
*
|
||
|
|
* <Stack direction="row">
|
||
|
|
* <span>hello</span>
|
||
|
|
* <Spacer />
|
||
|
|
* <span>world</span>
|
||
|
|
* </Stack>
|
||
|
|
*/
|
||
|
|
|
||
|
|
export const Spacer = () => (
|
||
|
|
<span
|
||
|
|
className={css`
|
||
|
|
flex: 1;
|
||
|
|
`}
|
||
|
|
/>
|
||
|
|
);
|