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

ComposerPromptLengthValidation.tsx

13 lines308 Bytes

1export function ComposerPromptLengthValidation({ message }: { message: string | null }) {
2 if (!message) return null;
3​
4 return (
5 <p
6 role="alert"
7 className="px-3 pb-2 text-xs text-destructive sm:px-4"
8 data-chat-composer-validation="prompt-length"
9 >
10 {message}
11 </p>
12 );