score:0
I assume that what you want is customize your MultiValue component in order to make it animated.
You can see in the documentation for animated components that makeAnimated
method create a wrapper for components passed as arguments and:
If no arguments are passed, built-in components are wrapped instead.
In your code this is the built-in MultiValue component that will be animated
If this is what you want you have to pass you custom MultiValue as argument to makeAnimated
and use animatedComponents
in the components
props of Select
// Animated components
const animatedComponents = makeAnimated({ MultiValue: CustomMultiValue });
...
<Select
isMulti
components={animatedComponents}
...
/>
You can try it in this code sandbox where the MultiValue is animated and customized to display a custom label
https://codesandbox.io/s/clever-payne-ehi8t?file=/src/App.tsx
Source: stackoverflow.com
Related Query
- react-select: Is it possible to add animated components and custom components simultaneously?
- React Player add custom play button and overlay img
- Is it too expensive to add and remove event listeners on every call of my React custom hook? How to avoid it?
- Creating a Custom Button in React Typescript and add onClick Event
- Unable to figure out how to highlight or select individual objects in InstancedMesh and display custom HTML tooltip using react three fiber
- React Higher Order Components to add a custom attribute to the rendered JSX
- How to add the input field inside the select option using ant design and react
- router props and custom props with typescript react router dom for functional components
- Custom components based on Material UI and React
- Is it possible to give a custom path to the `/static` directory using React and Express?
- is there a way to add custom html inside the Popconfirm in antd and React
- How to parse Embeddable Links from Markdown and render custom React Components
- Add custom css for react dropdown tree select all other css mashup
- Proper helper or custom React hook to add and initialise Firebase
- In React is it possible to add and remove elements dynamically?
- How to add custom icon in react select of search filter
- How to efficiently add variants for components using styled-components and React
- How to add an image in the first react component and ignore in rest of the components using map function
- Setting up React / Webpack / Babel and creating custom components
- Dynamically add and remove select elements with react js
- Assigning IDs to React components to add to state and map over in the render function
- Looping through custom react components and adding className's to them
- React JS — how do I add child components and set calculated transformations?
- Is it possible to hold a list of react components in state and render them?
- Is it possible to pass components as properties and add interactions to them?
- How to add header and footer in some specific components not in all. In Router V6 in React js
- Express session - Add and access custom cookie field outside of req in a react app
- What are React controlled components and uncontrolled components?
- How to import and export components using React + ES6 + webpack?
- How to render react components by using map and join?
More Query from same tag
- Redirect to a different page on submit in react
- How to toggle and add a styleName to a react component
- ReactJs: How to execute a function that depends on the result of a setState that's called inside componentDidUpdate
- Reactjs: how to share a websocket between components
- Typescript papaparse No overload matches this call
- '<' not recognized when using reactJS in server-side node.js
- (node:9374) Warning: To load an ES module, set "type": "module"
- ReactJS _ name custom attribute - The custom attribute of my React component returns "undefined"
- React TypeScript: How to clear an input field
- Cypress select first item of Autocomplete Material UI
- Get selected dropdown value from react to nodejs
- How do I pass state through React_router?
- how to resolve a react native EventEmitterListener warning
- Iterate Array in Tabs in React
- Getting a 'cannot find module' error in nextJS development build
- MUI Swipeable Drawer but let some part be always visible
- Redux: Action was successfully dispatched but the State was not created
- Issue with cursor jumping to last line on editing textArea
- Where to call setState to update props correctly
- React 0.13 this.getDOMNode() equivalent to React.findDOMNode()
- Component router after timeout with state
- ReactJS className not being applied to component
- React functional component: how to setState multiple times in a loop
- How to get the id of a table in HTML and affect a function in Jquery
- CSSTransition not showing transitions in React
- Why my action is not triggering in the reducer?
- Nesting StackNavigator inside BottomTabNavigator react-navigation v5
- `componentDidMount()` function is not called after navigation
- How to change text when I am reusing components in react?
- Using Redirect upon form submission in React