Alert

less than 1 minute read

References

TypeScript

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

// Create the alert
let el = document.querySelector("#alert");
let alert = Components.Alert({
    el: el,
    content: "This is an alert."
});

React

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

export class IDemo extends React.Component {
    // Render the component
    render() {
        return (
            <Alert
                content="This is an alert."
            />
        );
    }
}

VueJS

<template>
    <Alert content="This is an alert." />
</template>

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

Code Playground