@manta-eu/react/select
Reference for @manta-eu/react/select as it is on main.
Type Aliases
SelectContentProps
SelectContentProps =
ComponentPropsWithoutRef<typeofSelectPrimitive.Content> &object
Type Declaration
ref?
optionalref?:Ref<HTMLDivElement>
size?
optionalsize?:SelectVariantsSize
SelectItemProps
SelectItemProps =
ComponentPropsWithoutRef<typeofSelectPrimitive.Item> &object
Type Declaration
error?
optionalerror?:boolean
ref?
optionalref?:Ref<HTMLDivElement>
SelectLabelProps
SelectLabelProps =
ComponentPropsWithoutRef<typeofSelectPrimitive.Label> &object
Type Declaration
ref?
optionalref?:Ref<HTMLDivElement>
SelectScrollButtonProps
SelectScrollButtonProps =
ComponentPropsWithoutRef<typeofSelectPrimitive.ScrollUpButton| typeofSelectPrimitive.ScrollDownButton> &object
Type Declaration
ref?
optionalref?:Ref<HTMLDivElement>
SelectSeparatorProps
SelectSeparatorProps =
ComponentPropsWithoutRef<typeofSelectPrimitive.Separator> &object
Type Declaration
ref?
optionalref?:Ref<HTMLDivElement>
SelectTriggerProps
SelectTriggerProps =
ComponentPropsWithoutRef<typeofSelectPrimitive.Trigger> &object
Type Declaration
error?
optionalerror?:string
hiddenLabel?
optionalhiddenLabel?:boolean
hideChevron?
optionalhideChevron?:boolean
id
id:
string
label
label:
string
ref?
optionalref?:Ref<HTMLButtonElement>
required?
optionalrequired?:boolean
size?
optionalsize?:SelectVariantsSize
SelectVariantsSize
SelectVariantsSize = keyof typeof
selectConfig.variants.size
Variables
Select
constSelect:FC<SelectProps> =SelectPrimitive.Root
selectConfig
constselectConfig:object
Type Declaration
base
base:
string[]
defaultVariants
defaultVariants:
object
defaultVariants.size
readonlysize:"base"="base"
variants
variants:
object
variants.size
size:
object
variants.size.base
base:
string="h-10 px-3 typography-caption"
variants.size.lg
lg:
string="h-12 px-4 typography-body-v4"
variants.size.sm
sm:
string="h-8 px-3 typography-small"
SelectGroup
constSelectGroup:ForwardRefExoticComponent<SelectGroupProps&RefAttributes<HTMLDivElement>> =SelectPrimitive.Group
SelectValue
constSelectValue:ForwardRefExoticComponent<SelectValueProps&RefAttributes<HTMLSpanElement>> =SelectPrimitive.Value
Functions
createSelectClassName()
createSelectClassName(
props?):string
Parameters
props?
VariantPropsOf<{ base: string[]; variants: { size: { sm: string; base: string; lg: string; }; }; defaultVariants: { readonly size: “base”; }; }> & ClassProp
Returns
string
SelectContent()
SelectContent(
props):Element
Parameters
props
Returns
Element
SelectItem()
SelectItem(
props):Element
Parameters
props
Returns
Element
SelectLabel()
SelectLabel(
props):Element
Parameters
props
Returns
Element
SelectScrollDownButton()
SelectScrollDownButton(
props):Element
Parameters
props
Returns
Element
SelectScrollUpButton()
SelectScrollUpButton(
props):Element
Parameters
props
Returns
Element
SelectSeparator()
SelectSeparator(
props):Element
Parameters
props
Returns
Element
SelectTrigger()
SelectTrigger(
props):Element
Parameters
props
Returns
Element