Skip to content

karthik25/tagsharp

Repository files navigation

Tag Sharp

Tag# collection of .net core tag helpers. The plan is to include as many as possible. At this point only bootstrap is available.

In order to start using the Tag# tag helpers, first use nuget to include the package - search for TagSharp. then open _ViewImports.cshtml to indicate that you intend to use the Tag# tag helpers as shown below:

@addTagHelper *, TagSharp

Now you are all set to start using Tag# tag helpers.

For example in order to create a simple label here is what you can do.

<ts-label>Default</ts-label>
<ts-label-primary>Primary</ts-label-primary>
<ts-label bs-css-class="label-danger">Danger</ts-label>

Similarly in order to create a panel, here is what you can do.

<ts-panel>
    <ts-panel-header>
        <strong>Default Panel</strong>
    </ts-panel-header>
    <ts-panel-body>
        Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's 
        standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make 
        a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, 
        remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing 
        Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including 
        versions of Lorem Ipsum.
    </ts-panel-body>
    <ts-panel-footer>
        Thank You!
    </ts-panel-footer>
</ts-panel>

There is a demo included in this project to fully explain the entire list of possiblities!!

Its a work in progress and I am still learning the nuances of tag helpers, so it will take a few iterations to be good, leave alone perfect! Thanks for looking!!

Releases

No releases published

Packages

No packages published