discord-card-react
Version:
React Discord profile card component
17 lines (16 loc) • 800 B
TypeScript
/**
* Generates a Discord message section with a textarea for input.
*
* @param {string} message - The message to display in the textarea
* @param {string} placeholder - The placeholder text for the textarea
* @param {string} accentColor - The color to use for the textarea border
* @param {function} handleInput - The function to handle input changes in the textarea
* @return {JSX.Element} The JSX element representing the message section
*/
declare const MessageSection: ({ message, placeholder, accentColor, handleInput, }: {
message?: string | undefined;
placeholder?: string | undefined;
accentColor?: string | undefined;
handleInput: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
}) => import("react/jsx-runtime").JSX.Element;
export default MessageSection;