Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

DraftProjectName.tsx

16 lines333 Bytes

1export function DraftProjectName({
2 value,
3 singleLine = false,
4}: {
5 value: string;
6 singleLine?: boolean;
7}) {
8 return (
9 <span
10 aria-label={value}
11 className={`min-w-0 ${singleLine ? "block truncate text-left" : "line-clamp-2 whitespace-normal [overflow-wrap:anywhere]"}`}
12 >
13 {value}
14 </span>
15 );