-
Hello, The editor was created using an older design system. When migrating, we wanted to use Paste components to implement the tabs, but I'm unable to find a suitable component for this use case. My team created a POC with two of paste's components:
I wanted to start a discussion around creating a component that would help our use-case (code editors). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @gautam678, For something like this we recommend using the Tabs Primitive. Here's a codesandbox showing how you can solve all three of your issues: https://codesandbox.io/s/epic-elion-84w3l6?file=/src/index.tsx
Styling is left as an exercise to the reader. You can get inspiration from how we style our Tabs component. |
Beta Was this translation helpful? Give feedback.
Hi @gautam678,
For something like this we recommend using the Tabs Primitive. Here's a codesandbox showing how you can solve all three of your issues: https://codesandbox.io/s/epic-elion-84w3l6?file=/src/index.tsx
Styling is left as an exercise to the reader. You can get inspiration from how we style our Tabs component.