Skip to content

Commit

Permalink
refactor(navbar): refactor navbar component template files
Browse files Browse the repository at this point in the history
  • Loading branch information
MGREMY committed Jan 16, 2024
1 parent 34122e6 commit 94728be
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<nav
class="border-gray-200 bg-white px-2 py-2.5 dark:border-gray-700 dark:bg-gray-800 sm:px-4"
[ngClass]="[rounded ? 'rounded' : '', border ? 'border' : '', extraClass]"
>
<div
class="mx-auto flex flex-wrap items-center justify-between"
[ngClass]="{ container: !fluid }"
>
<ng-content></ng-content>
</div>
</nav>
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,7 @@ import { NgClass } from '@angular/common';
standalone: true,
imports: [NgClass],
selector: 'flowbite-navbar',
template: ` <nav
class="border-gray-200 bg-white px-2 py-2.5 dark:border-gray-700 dark:bg-gray-800 sm:px-4"
[ngClass]="[rounded ? 'rounded' : '', border ? 'border' : '', extraClass]"
>
<div
class="mx-auto flex flex-wrap items-center justify-between"
[ngClass]="{ container: !fluid }"
>
<ng-content></ng-content>
</div>
</nav>`,
templateUrl: './navbar.component.html',
})
export class NavbarComponent {
@Input() extraClass = '';
Expand Down

0 comments on commit 94728be

Please sign in to comment.