-
Notifications
You must be signed in to change notification settings - Fork 49
feat(accordion): add custom icon support #97
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
Merged
Changes from all commits
Commits
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
85 changes: 85 additions & 0 deletions
85
apps/docs/docs/components/accordion/_arrow-style.component.html
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,85 @@ | ||
| <flowbite-accordion> | ||
| <flowbite-accordion-panel [isOpen]="true"> | ||
| <flowbite-accordion-title [icon]="no_arrow">What is Flowbite ?</flowbite-accordion-title> | ||
| <flowbite-accordion-content> | ||
| <div class="p-5"> | ||
| <p class="text-base font-normal text-gray-600 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-base font-normal text-gray-600 dark:text-gray-400"> | ||
| Check out this guide to learn how to | ||
| <a | ||
| class="text-base font-medium underline text-gray-600 dark:text-gray-400 decoration-primary-600 dark:decoration-primary-500" | ||
| href="https://flowbite.com/docs/getting-started/introduction/"> | ||
| Get started | ||
| </a> | ||
| and start developing websites even faster with components on top of Tailwind CSS. | ||
| </p> | ||
| </div> | ||
| </flowbite-accordion-content> | ||
| </flowbite-accordion-panel> | ||
| <flowbite-accordion-panel> | ||
| <flowbite-accordion-title [icon]="question_mark_arrow"> | ||
| Is there a Figma file available ? | ||
| </flowbite-accordion-title> | ||
| <flowbite-accordion-content> | ||
| <div class="p-5"> | ||
| <p class="text-base font-normal text-gray-600 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-base font-normal text-gray-600 dark:text-gray-400"> | ||
| Check out the | ||
| <a href="https://flowbite.com/figma/">Figma design system</a> | ||
| based on the utility classes from Tailwind CSS and components from Flowbite. | ||
| </p> | ||
| </div> | ||
| </flowbite-accordion-content> | ||
| </flowbite-accordion-panel> | ||
| <flowbite-accordion-panel> | ||
| <flowbite-accordion-title> | ||
| What are the differences between Flowbite and Tailwind UI ? | ||
| </flowbite-accordion-title> | ||
| <flowbite-accordion-content> | ||
| <div class="p-5"> | ||
| <p class="text-base font-normal text-gray-600 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="text-base font-normal text-gray-600 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="text-base font-normal text-gray-600 dark:text-gray-400"> | ||
| Learn more about these technologies : | ||
| </p> | ||
| <ul class="text-base font-normal text-gray-600 dark:text-gray-400 list-disc list-inside"> | ||
| <li> | ||
| <a | ||
| class="text-base font-medium underline text-gray-600 dark:text-gray-400 decoration-primary-600 dark:decoration-primary-500" | ||
| href="https://flowbite.com/pro/"> | ||
| Flowbite Pro | ||
| </a> | ||
| </li> | ||
| <li> | ||
| <a | ||
| class="text-base font-medium underline text-gray-600 dark:text-gray-400 decoration-primary-600 dark:decoration-primary-500" | ||
| href="https://tailwindui.com/" | ||
| rel="nofollow"> | ||
| Tailwind UI | ||
| </a> | ||
| </li> | ||
| </ul> | ||
| </div> | ||
| </flowbite-accordion-content> | ||
| </flowbite-accordion-panel> | ||
| </flowbite-accordion> | ||
|
|
||
| <ng-template #no_arrow /> | ||
| <ng-template #question_mark_arrow> | ||
| <flowbite-icon | ||
| svgIcon="outline:question-circle" | ||
| class="h-6 w-6 shrink-0" /> | ||
| </ng-template> |
23 changes: 23 additions & 0 deletions
23
apps/docs/docs/components/accordion/_arrow-style.component.ts
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,23 @@ | ||
| import { | ||
| AccordionComponent, | ||
| AccordionContentComponent, | ||
| AccordionPanelComponent, | ||
| AccordionTitleComponent, | ||
| } from 'flowbite-angular/accordion'; | ||
| import { IconComponent } from 'flowbite-angular/icon'; | ||
|
|
||
| import { Component } from '@angular/core'; | ||
|
|
||
| @Component({ | ||
| selector: 'flowbite-demo-accordion-arrow-style', | ||
| standalone: true, | ||
| imports: [ | ||
| AccordionComponent, | ||
| AccordionTitleComponent, | ||
| AccordionContentComponent, | ||
| AccordionPanelComponent, | ||
| IconComponent, | ||
| ], | ||
| templateUrl: './_arrow-style.component.html', | ||
| }) | ||
| export class FlowbiteArrowStyleComponent {} |
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.