#shadcn tabs

1 messages · Page 1 of 1 (latest)

indigo kayak
#

can someone help me, i wanna round the ends of the tab list and get rid of that whitespace around the indicator but dk how

proper sparrowBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

indigo kayak
#
'use client'
import React from 'react'
import '../globals.css';
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"


const page = () => {

  const questions = [
    {question: '', answer: ''},
    {question: '', answer: ''},
    {question: '', answer: ''},
    {question: '', answer: ''},
    {question: '', answer: ''},
    {question: '', answer: ''},
    {question: '', answer: ''},
    {question: '', answer: ''},
  ]

  return (
    <div>
      <Tabs className='min-w-screen flex flex-row justify-center mt-15'>
        <div className="flex">
          {questions.map(({question, answer}: {question: string, answer: string}, index: number) => (
          <div key={index+1} className=''>
            <TabsList className='' defaultValue={'1'}>
            <TabsTrigger value={String(index+1)} className=''>Q{String(index+1)}</TabsTrigger>
          </TabsList>
          <TabsContent value={String(index+1)}>
            {question}
          </TabsContent>
          </div>
          ))}
        </div>
      </Tabs>
    </div>
  )
}

export default page```
shell scaffold
#

Try adding these classNames to
<TabsList className=“rounded-lg p-0” >