badge

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package badge wraps Bootstrap Badge component

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Badge

type Badge struct {
	*bs.Component
}

Badge represents Bootstrap badge component.

func Attach

func Attach(id string) *Badge

Attach binds Bootstrap badge component.

func Link(style bs.Style, link string, content ...interface{}) *Badge

Link returns a Bootstrap badge with link (<a>).

func New

func New(style bs.Style, content ...interface{}) *Badge

New returns a Bootstrap badge with span tag.

func (*Badge) Pill

func (b *Badge) Pill() *Badge

Pill adds pill style.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL