anvil/striker-ui/components/Text/MonoText.tsx

19 lines
415 B
TypeScript
Raw Normal View History

2022-08-17 00:11:59 +00:00
import { FC } from 'react';
import { BodyTextProps } from './BodyText';
import SmallText from './SmallText';
type MonoTextProps = BodyTextProps;
const MonoText: FC<MonoTextProps> = ({ sx, ...bodyTextRestProps }) => (
<SmallText
monospaced
sx={{ alignItems: 'center', display: 'flex', height: '100%', ...sx }}
{...bodyTextRestProps}
/>
);
export type { MonoTextProps };
export default MonoText;