Skip to content

all same open with different button in Disclosure #565

Answered by amantiwari1
amantiwari1 asked this question in Help
Discussion options

You must be logged in to vote

ohh resolved

    
        {Data.map((item, index) => (
 <Disclosure>
          <div key={index}>
            <Disclosure.Button tw="py-2 font-medium text-left w-full">
              {item.title}
            </Disclosure.Button>
            <Disclosure.Panel tw="text-gray-500">
              {ReactHtmlParser(item.content)}
            </Disclosure.Panel>
          </div>
      </Disclosure>
        ))}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by amantiwari1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant