shadcn-ui/ui

[feat]: Preserve type for onValueChange in Select component.

AbhinasRegmi opened this issue · 0 comments

Feature description

<SelectItem value={something <- this has sometype}>something</ SelectItem>

OnClick events to select items the value I get from onValueChange((i) => {//here i is of type string})

How to make it so the type provided in value will be the type of param in onValueChange.

Affected component/components

Select

Additional Context

No response

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues and PRs