To deal with grouping elements, Perfect UI provides the `.group-row`, `.group-col`, `.group-responsive` and `.group-item` classes. These will be useful for dealing with unnecessary borders and rounding of elements.
For some elements, the use of this class is mandatory, such as the `<accordion>`.
First questionFirst answerSecond questionSecond answer
The buttons need the `.group-item` class to work, because they have no class `.item`.
Group responsive
If you need the group to change automatically with the screen size, simply use `group-responsive`.
For screens larger than `1024px`, `group-row` will be applied, for smaller screens `group-col`.
Card Title
Some quick example text to build on the card title and make up the bulk of the card's content.
Last updated 5 mins ago
Card Title
Some quick example text to build on the card title and make up the bulk of the card's content.
Last updated 5 mins ago
Card Title
Some quick example text to build on the card title and make up the bulk of the card's content.
Last updated 5 mins ago
<sectionclass="group-responsive"><!-- card #1 --><divclass="card group-item"><imgalt="Accordion Image"src="https://images.unsplash.com/photo-1680868543815-b8666dba60f7?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1000&q=80"><articleclass="card-content flex flex-col justify-between"><div><h1class="font-semibold text-xl mb-2">Card Title</h1><p>Some quick example text to build on the card title and make up the bulk of the card's content.</p></div><pclass="text-xs text-secondary mt-8">Last updated 5 mins ago</p></article></div><!-- card #2 --><divclass="card group-item"><imgalt="Accordion Image"src="https://images.unsplash.com/photo-1680868543815-b8666dba60f7?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1000&q=80"><articleclass="card-content flex flex-col justify-between"><div><h1class="font-semibold text-xl mb-2">Card Title</h1><p>Some quick example text to build on the card title and make up the bulk of the card's content.</p></div><pclass="text-xs text-secondary mt-8">Last updated 5 mins ago</p></article></div><!-- card #3 --><divclass="card group-item"><imgalt="Accordion Image"src="https://images.unsplash.com/photo-1680868543815-b8666dba60f7?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1000&q=80"><articleclass="card-content flex flex-col justify-between"><div><h1class="font-semibold text-xl mb-2">Card Title</h1><p>Some quick example text to build on the card title and make up the bulk of the card's content.</p></div><pclass="text-xs text-secondary mt-8">Last updated 5 mins ago</p></article></div></section>