-
I see that it was removed on f3ff3f5. I actually use that prop on some of my lists. Is there a way to replicate it? |
Beta Was this translation helpful? Give feedback.
Answered by
csandman
Oct 21, 2024
Replies: 1 comment 1 reply
-
Yeah this is pretty straightforward to add with the Here's an example of how you can add it with just a few custom styles: const App = () => (
<Select
chakraStyles={{
groupHeading: (base) => ({
...base,
borderBottomWidth: 1,
position: 'sticky',
top: -2,
bg: 'white', // Make this match whatever the background color of your modal is
zIndex: 1,
}),
}}
/>
) Here's a complete example: https://stackblitz.com/edit/vitejs-vite-ngfuyh?file=src%2Fapp.tsx |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tsuharesu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah this is pretty straightforward to add with the
chakraStyles
prop! That was the main reason it was removed, it's very simple to add as an end-user, and it's not really replicating something from React Select or Chakra.Here's an example of how you can add it with just a few custom styles:
Here's a complete example: https://stackblitz.com/edit/vitejs-vite-ngfuyh?file=src%2Fapp.tsx