@baseplate-dev/ui-components
Version:
Shared UI component library
26 lines • 1.67 kB
TypeScript
import type * as React from 'react';
import { Select as SelectPrimitive } from 'radix-ui';
/**
* Select component
*
* - Adapted styles to make full width to match input styles
* - Added max height to the content
* - Use scroll area to make the content scrollable rather than buttons
*
* https://ui.shadcn.com/docs/components/select
*/
declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): React.ReactElement;
declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): React.ReactElement;
declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): React.ReactElement;
declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
size?: 'sm' | 'default';
}): React.ReactElement;
interface SelectContentProps extends React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content> {
maxHeight?: string;
}
declare function SelectContent({ className, children, position, maxHeight, ...props }: SelectContentProps): React.ReactElement;
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): React.ReactElement;
declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): React.ReactElement;
declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): React.ReactElement;
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, };
//# sourceMappingURL=select.d.ts.map