ar-design
Version:
AR Design is a (react | nextjs) ui library.
35 lines (34 loc) • 1.12 kB
TypeScript
import { IBorder, IColors, IIcon, ISize, IUpperCase, IValidation, IVariant } from "../../../libs/types/IGlobalProps";
import { Color } from "../../../libs/types";
interface IProps extends IVariant, IColors, IBorder, IIcon, ISize, IUpperCase, IValidation, Omit<React.InputHTMLAttributes<HTMLInputElement>, "children" | "size" | "color"> {
/**
* Bileşenin başlığı veya etiket metnidir.
*
* Genellikle input, buton gibi öğelerin ne amaçla kullanıldığını belirtmek için görüntülenir.
*
* Örneğin;
*
* ```jsx
* <Radio label="Kullanıcı Adı" />
* ```
*/
label?: string;
/**
* Bileşenin izlenebilir bir durum göstergesi (trace) olup olmadığını belirtir.
*
* - `color`: İzleme durumunu belirtmek için kullanılır. `Status` tipiyle tanımlanır (örneğin "success", "error", "warning" gibi).
*
* Örneğin;
*
* ```jsx
* <Radio trace={{ color: "success" }} />
* ```
*/
trace?: {
color: Color;
};
pastTrace?: {
color: Color;
};
}
export default IProps;