* WIP * Text field * URL * Finished PhoneInput * Refactored input sub-folders * Boolean * Fix lint * Fix lint * Fix useOutsideClick --------- Co-authored-by: Charles Bochet <charles@twenty.com>
17 lines
327 B
TypeScript
17 lines
327 B
TypeScript
import styled from '@emotion/styled';
|
|
|
|
const StyledTextInputDisplay = styled.div`
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
width: 100%;
|
|
`;
|
|
|
|
type OwnProps = {
|
|
text: string;
|
|
};
|
|
|
|
export function TextDisplay({ text }: OwnProps) {
|
|
return <StyledTextInputDisplay>{text}</StyledTextInputDisplay>;
|
|
}
|