mirror of
https://github.com/grafana/grafana.git
synced 2025-09-20 02:18:56 +08: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;
|
|
`}
|
|
/>
|
|
);
|