This repository has been archived by the owner on Sep 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(component): badge & breadcrumb added
(cherry picked from commit ef59c80)
- Loading branch information
1 parent
50e4686
commit ea6f7a8
Showing
10 changed files
with
129 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,24 @@ | ||
<h1>Example heading <span class="badge badge-secondary">New</span></h1> | ||
<h2>Example heading <span class="badge badge-secondary">New</span></h2> | ||
<h3>Example heading <span class="badge badge-secondary">New</span></h3> | ||
<h4>Example heading <span class="badge badge-secondary">New</span></h4> | ||
<h5>Example heading <span class="badge badge-secondary">New</span></h5> | ||
<h6>Example heading <span class="badge badge-secondary">New</span></h6> | ||
|
||
<hr> | ||
|
||
<button type="button" class="btn btn-primary"> | ||
Notifications <span class="badge badge-light">4</span> | ||
</button> | ||
|
||
<hr> | ||
|
||
<div class="bd-example"> | ||
<span class="badge badge-primary mr-2">Primary</span> | ||
<span class="badge badge-secondary mr-2">Secondary</span> | ||
<span class="badge badge-success mr-2">Success</span> | ||
<span class="badge badge-danger mr-2">Danger</span> | ||
<span class="badge badge-warning mr-2">Warning</span> | ||
<span class="badge badge-info mr-2">Info</span> | ||
<span class="badge badge-light">Light</span> | ||
</div> |
This file contains 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,7 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'demo-badge', | ||
templateUrl: './badge.component.html' | ||
}) | ||
export class DemoBadgeComponent {} |
This file contains 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 @@ | ||
<nav role="navigation" aria-labelledby="breadcrumb-intro"> | ||
<p class="sr-only" id="breadcrumb-intro">You are here:</p> | ||
<ol class="breadcrumb"> | ||
<li class="breadcrumb-item active" aria-current="location">Home</li> | ||
</ol> | ||
</nav> | ||
|
||
<nav role="navigation" aria-labelledby="breadcrumb-intro-2"> | ||
<p class="sr-only" id="breadcrumb-intro-2">You are here:</p> | ||
<ol class="breadcrumb"> | ||
<li class="breadcrumb-item"><a href="#">Home</a></li> | ||
<li class="breadcrumb-item active" aria-current="location">Library</li> | ||
</ol> | ||
</nav> | ||
|
||
<nav role="navigation" aria-labelledby="breadcrumb-intro-3"> | ||
<p class="sr-only" id="breadcrumb-intro-3">You are here:</p> | ||
<ol class="breadcrumb"> | ||
<li class="breadcrumb-item"><a href="#">Home</a></li> | ||
<li class="breadcrumb-item"><a href="#">Library</a></li> | ||
<li class="breadcrumb-item active" aria-current="location">Data</li> | ||
</ol> | ||
</nav> |
This file contains 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,7 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'demo-breadcrumb', | ||
templateUrl: './breadcrumb.component.html' | ||
}) | ||
export class DemoBreadcrumbComponent {} |
This file contains 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 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,20 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'doc-badge', | ||
template: ` | ||
<docs-wrapper component="Badge"> | ||
<p class="mt-4">Check the <a target="_blank" rel="noopener noreferrer" | ||
href="https://boosted.orange.com/docs/4.5/components/badge">ng-bootstrap's original component documentation</a>.</p> | ||
<h3>Demo</h3> | ||
<demo-badge></demo-badge> | ||
<code-box [snippets]="demoSnippets"></code-box> | ||
</docs-wrapper> | ||
` | ||
}) | ||
export class DocBadgeComponent { | ||
public demoSnippets = { | ||
markup: require('!!prismjs-loader?lang=html!../demos/badge.component.html'), | ||
typescript: require('!!prismjs-loader?lang=typescript!../demos/badge.component.ts') | ||
}; | ||
} |
This file contains 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,20 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'doc-breadcrumb', | ||
template: ` | ||
<docs-wrapper component="Breadcrumb"> | ||
<p class="mt-4">Check the <a target="_blank" rel="noopener noreferrer" | ||
href="https://boosted.orange.com/docs/4.5/components/breadcrumb">ng-bootstrap's original component documentation</a>.</p> | ||
<h3>Demo</h3> | ||
<demo-breadcrumb></demo-breadcrumb> | ||
<code-box [snippets]="demoSnippets"></code-box> | ||
</docs-wrapper> | ||
` | ||
}) | ||
export class DocBreadcrumbComponent { | ||
public demoSnippets = { | ||
markup: require('!!prismjs-loader?lang=html!../demos/breadcrumb.component.html'), | ||
typescript: require('!!prismjs-loader?lang=typescript!../demos/breadcrumb.component.ts') | ||
}; | ||
} |