
import {
  Collapsible,
  CollapsibleContent,
  CollapsibleTrigger,
} from '@/app/components/shadcn-ui/Default-Ui/collapsible'
const BasicCollapseCode = () => {
  return (
    <>
      <div>
        <Collapsible>
          <CollapsibleTrigger className='text-ld text-15 font-medium'>
            Can I use this in my project?
          </CollapsibleTrigger>
          <CollapsibleContent className='mt-2 text-darklink dark:text-bodytext'>
            Lorem Ipsum is simply dummy text of the printing and typesetting
            industry. Lorem Ipsum has been the industry's standard dummy text
            ever since the 1500s, when an unknown printer took a galley of type
            and scrambled it to make a type specimen book. It has survived not
            only five centuries, but also the leap into electronic typesetting,
            remaining essentially unchanged. It was popularised in the 1960s
            with the release of Letraset sheets containing Lorem Ipsum passages,
            and more recently with desktop publishing software like Aldus
            PageMaker including versions of Lorem Ipsum.
          </CollapsibleContent>
        </Collapsible>
      </div>
    </>
  )
}
export default BasicCollapseCode
import React from 'react'
import { ChevronsUpDown } from 'lucide-react'
import { Button } from '@/app/components/shadcn-ui/Default-Ui/button'
import {
  Collapsible,
  CollapsibleContent,
  CollapsibleTrigger,
} from '@/app/components/shadcn-ui/Default-Ui/collapsible'
const BasicCollapseCode = () => {
  const [isOpen, setIsOpen] = React.useState(false)
  return (
    <>
      <div>
        <Collapsible
          open={isOpen}
          onOpenChange={setIsOpen}
          className='w-full space-y-2'>
          <div className='flex items-center justify-between space-x-4 '>
            <h4 className='text-ld text-15 font-medium'>
              @peduarte starred 3 repositories
            </h4>
            <CollapsibleTrigger asChild>
              <Button variant='ghost' size='sm' className='w-9 p-0'>
                <ChevronsUpDown className='h-4 w-4' />
                <span className='sr-only'>Toggle</span>
              </Button>
            </CollapsibleTrigger>
          </div>
          <div className='rounded-md border border-ld px-4 py-3 text-sm text-darklink dark:text-bodytext'>
            @radix-ui/primitives
          </div>
          <CollapsibleContent className='space-y-2'>
            <div className='rounded-md border border-ld px-4 py-3 text-sm text-darklink dark:text-bodytext'>
              @radix-ui/colors
            </div>
            <div className='rounded-md border border-ld px-4 py-3 text-sm text-darklink dark:text-bodytext'>
              @stitches/react
            </div>
          </CollapsibleContent>
        </Collapsible>
      </div>
    </>
  )
}
export default BasicCollapseCode