wass-rct-ui
Version:
A lightweight and customizable WASS Rct UI component library for modern web applications.
35 lines (34 loc) • 1.17 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 { ChangeEvent, FocusEvent } from "react";
import { BaseColorVariant, SizeType } from "../types";
export interface SelectOptionProps {
value: string;
label: string;
}
export interface SelectDropdownProps extends Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "size"> {
options?: SelectOptionProps[];
placeholder?: string;
alignment?: string;
sizeVariant?: SizeType;
colorVariant?: BaseColorVariant;
isRounded?: boolean;
isLoading?: boolean;
isDisabled?: boolean;
fullWidth?: boolean;
className?: string;
value?: string;
id?: string;
required?: boolean;
onBlur?: (event: FocusEvent<HTMLSelectElement>) => void;
onChange?: (event: ChangeEvent<HTMLSelectElement>) => void;
}
declare const SelectDropdown: React.FC<SelectDropdownProps>;
export default SelectDropdown;