Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How extend chakra-react-select property in typescript#309

Unanswered
Marina-Sugutova asked this question inQ&A
Discussion options

I want to add my own component

  <Select   ....   components={{        NoOptionsMessage,        MenuList,        MyOwnComponent    }}  </Select>

I'm trying to expand the interface and it won't work
how to do it correctly?

example d.ts

import type { ComponentType } from 'react';import from 'chakra-react-select';declare module 'chakra-react-select' {  export interface SelectComponents<    Option,    IsMulti,    Group extends GroupBase<Option>,  > {    MyOwnComponent?: ComponentType<unknown>;  }}
You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@Marina-Sugutova

[8]ページ先頭

©2009-2025 Movatter.jp