wass-rct-ui
Version:
A lightweight and customizable WASS Rct UI component library for modern web applications.
42 lines (41 loc) • 1.28 kB
TypeScript
/**
* @file wass-rct-ui
* @description A reusable Title component that supports dynamic heading levels.
* @author Web Apps Software Solutions
* @copyright © 2024 Web Apps Software Solutions. All rights reserved.
* @license MIT
* @repository https://github.com/WebAppSoftNK/wass-rct-ui
*/
import * as React from "react";
import { FC } from "react";
import { BaseColorVariant, GroupAlignmentType, SizeType } from "../types";
export interface FieldProps {
label?: string;
sideLabel?: boolean;
rightIcon?: boolean;
leftIcon?: boolean;
isExpanded?: boolean;
isLoading?: boolean;
isGrouped?: boolean;
isAddon?: boolean;
rightButton?: boolean;
buttonDisabled?: boolean;
leftButton?: boolean;
leftButtonColor?: BaseColorVariant;
rightButtonColor?: BaseColorVariant;
groupAlignment?: GroupAlignmentType;
labelSizeVariant?: SizeType;
iconSizeVariant?: SizeType;
leftIconSize?: number;
leftIconColor?: string;
leftIconName?: string;
rightIconSize?: number;
rightIconColor?: string;
rightIconName?: string;
className?: string;
children?: React.ReactNode;
onLeftIconClick?: () => void;
onRightIconClick?: () => void;
}
declare const Field: FC<FieldProps>;
export default Field;