@vtex/admin-ui
Version:
> VTEX admin component library
24 lines (23 loc) • 658 B
TypeScript
import type { ReactNode, Ref } from 'react';
import React from 'react';
import type { SystemComponent } from '../../types';
export declare const Select: (props: SelectProps, ref: Ref<HTMLSelectElement>) => JSX.Element;
export interface SelectProps extends Omit<React.ComponentPropsWithoutRef<'select'>, 'css'>, SystemComponent {
/**
* Select label
*/
label: string;
/**
* Select helper text
*/
helperText?: ReactNode;
/**
* Select's tone of voice
* @default primary
*/
tone?: 'neutral' | 'critical';
/**
* Select critical message
*/
criticalText?: string;
}