-
Notifications
You must be signed in to change notification settings - Fork 138
Feature: improved Accordion component flexibility #351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Sqrcz
merged 5 commits into
themesberg:main
from
Sqrcz:feature--custom-accordion-classes
Feb 19, 2025
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 0 additions & 58 deletions
58
docs/components/accordion/examples/FwbAccordionExampleAlwaysOpen.vue
This file was deleted.
Oops, something went wrong.
67 changes: 67 additions & 0 deletions
67
docs/components/accordion/examples/FwbAccordionExampleCollapsed.vue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<template> | ||
<div class="vp-raw"> | ||
<fwb-accordion collapsed> | ||
<fwb-accordion-panel> | ||
<fwb-accordion-header>What is Flowbite?</fwb-accordion-header> | ||
<fwb-accordion-content> | ||
<p class="mb-2 text-gray-500 dark:text-gray-400"> | ||
Flowbite is an open-source library of interactive components built on top of Tailwind CSS including buttons, dropdowns, modals, navbars, and more. | ||
</p> | ||
<p class="text-gray-500 dark:text-gray-400"> | ||
Check out this guide to learn how to <a | ||
href="/docs/getting-started/introduction/" | ||
class="text-blue-600 hover:underline dark:text-blue-500" | ||
>get started</a> and start developing websites even faster with components on top of Tailwind CSS. | ||
</p> | ||
</fwb-accordion-content> | ||
</fwb-accordion-panel> | ||
<fwb-accordion-panel> | ||
<fwb-accordion-header>Is there a Figma file available?</fwb-accordion-header> | ||
<fwb-accordion-content> | ||
<p class="mb-2 text-gray-500 dark:text-gray-400"> | ||
Flowbite is first conceptualized and designed using the Figma software so everything you see in the library has a design equivalent in our Figma file. | ||
</p> | ||
<p class="text-gray-500 dark:text-gray-400"> | ||
Check out the <a | ||
href="https://flowbite.com/figma/" | ||
class="text-blue-600 hover:underline dark:text-blue-500" | ||
>Figma design system</a> based on the utility classes from Tailwind CSS and components from Flowbite. | ||
</p> | ||
</fwb-accordion-content> | ||
</fwb-accordion-panel> | ||
<fwb-accordion-panel> | ||
<fwb-accordion-header>What are the differences between Flowbite and Tailwind UI?</fwb-accordion-header> | ||
<fwb-accordion-content> | ||
<p class="mb-2 text-gray-500 dark:text-gray-400"> | ||
The main difference is that the core components from Flowbite are open source under the MIT license, whereas Tailwind UI is a paid product. Another difference is that Flowbite relies on smaller and standalone components, whereas Tailwind UI offers sections of pages. | ||
</p> | ||
<p class="mb-2 text-gray-500 dark:text-gray-400"> | ||
However, we actually recommend using both Flowbite, Flowbite Pro, and even Tailwind UI as there is no technical reason stopping you from using the best of two worlds. | ||
</p> | ||
<p class="mb-2 text-gray-500 dark:text-gray-400"> | ||
Learn more about these technologies: | ||
</p> | ||
<ul class="list-disc ps-5 text-gray-500 dark:text-gray-400"> | ||
<li> | ||
<a | ||
href="https://flowbite.com/pro/" | ||
class="text-blue-600 hover:underline dark:text-blue-500" | ||
>Flowbite Pro</a> | ||
</li> | ||
<li> | ||
<a | ||
href="https://tailwindui.com/" | ||
rel="nofollow" | ||
class="text-blue-600 hover:underline dark:text-blue-500" | ||
>Tailwind UI</a> | ||
</li> | ||
</ul> | ||
</fwb-accordion-content> | ||
</fwb-accordion-panel> | ||
</fwb-accordion> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { FwbAccordion, FwbAccordionContent, FwbAccordionHeader, FwbAccordionPanel } from '../../../../src/index' | ||
</script> |
61 changes: 0 additions & 61 deletions
61
docs/components/accordion/examples/FwbAccordionExampleFirstItemClosed.vue
This file was deleted.
Oops, something went wrong.
58 changes: 0 additions & 58 deletions
58
docs/components/accordion/examples/FwbAccordionExampleFlush.vue
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix prop inconsistency in the example code.
The example uses
collapsed
prop in the component (line 3) but showspersistent
in the documentation code (line 217).Apply this diff to fix the documentation code:
Also applies to: 217-217