@clayui/form
Version:
ClayForm component
24 lines (23 loc) • 1 kB
TypeScript
/**
* SPDX-FileCopyrightText: (c) 2026 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
import React from 'react';
export declare function OptGroup({ children, ...otherProps }: React.OptgroupHTMLAttributes<HTMLOptGroupElement>): React.JSX.Element;
export declare function Option({ label, ...otherProps }: React.OptionHTMLAttributes<HTMLOptionElement>): React.JSX.Element;
interface IProps extends React.SelectHTMLAttributes<HTMLSelectElement> {
/**
* Flag to make the Select component only as wide as its contents.
*/
shrink?: boolean;
/**
* Set the proportional size of the Select component.
*/
sizing?: 'lg' | 'sm';
}
declare function Select({ children, className, shrink, sizing, ...otherProps }: IProps): React.JSX.Element;
declare namespace Select {
var OptGroup: typeof import("./Select").OptGroup;
var Option: typeof import("./Select").Option;
}
export default Select;