Badge

less than 1 minute read

References

TypeScript

import { Components } from "gd-sprest-bs";

// Create the badge
let el = document.querySelector("#badge");
let badge = Components.Badge({
    el: el,
    content: "Badge"
});

React

import * as React from "react";
import { Badge } from "gd-sprest-bsx";

export class IDemo extends React.Component {
    // Render the component
    render() {
        return (
            <Badge
                content="Badge"
            />
        );
    }
}

VueJS

<template>
    <Badge content="Badge" />
</template>

<script>
import { Badge } from "gd-sprest-bs-vue";
export default {
    components: { Badge }
}
</script>

Code Playground