@primer/react-brand
Version:
Primer Brand is a GitHub's design system for creating React-based marketing websites and digital experiences.
38 lines (37 loc) • 1.14 kB
TypeScript
import React from 'react';
import type { BaseProps } from '../../component-helpers';
import type { FormInputSizes, FormValidationStatus } from '../form-types';
export declare const DEFAULT_TEXTAREA_ROWS = 7;
export declare const DEFAULT_TEXTAREA_COLS = 30;
export declare const DEFAULT_TEXTAREA_RESIZE = "both";
export type TextareaProps = {
/**
* Applies full width styling.
*/
fullWidth?: boolean;
/**
* Removes border
*/
invisible?: boolean;
/**
* Applies monospace styling.
*/
monospace?: boolean;
/**
* Applies alternative sizing to the input
*/
size?: FormInputSizes;
/**
* Applies a required attribute to the input
*/
required?: boolean;
/**
*
*/
validationStatus?: FormValidationStatus;
/**
* Allows resizing of the textarea
*/
resize?: 'none' | 'both' | 'horizontal' | 'vertical';
} & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'> & BaseProps<HTMLTextAreaElement>;
export declare const Textarea: React.ForwardRefExoticComponent<Omit<TextareaProps, "ref"> & React.RefAttributes<unknown>>;