-
Joel Jeremy Marquez authored
* Fix default imports * Fix manager Modals import * ESLint no-default-exports part 5 - Text.tsx * Fix default import * Release notes
Joel Jeremy Marquez authored* Fix default imports * Fix manager Modals import * ESLint no-default-exports part 5 - Text.tsx * Fix default import * Release notes
TextOneLine.tsx 450 B
import { type ComponentProps } from 'react';
import { Text } from './Text';
type TextOneLineProps = ComponentProps<typeof Text>;
export function TextOneLine({ children, ...props }: TextOneLineProps) {
return (
<Text
{...props}
style={{
...props.style,
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
display: 'block',
}}
>
{children}
</Text>
);
}