Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/bootstrap

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/bootstrap

TypeScript definitions for bootstrap

  • 4.6.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
500K
increased by3.35%
Maintainers
1
Weekly downloads
 
Created

What is @types/bootstrap?

@types/bootstrap provides TypeScript type definitions for the Bootstrap library, allowing developers to use Bootstrap with TypeScript and benefit from type checking and autocompletion.

What are @types/bootstrap's main functionalities?

Modal

This feature allows you to create and control Bootstrap modals using TypeScript. The code sample demonstrates how to initialize a modal with specific options.

const myModal = new bootstrap.Modal(document.getElementById('myModal'), { keyboard: false });

Tooltip

This feature allows you to create and manage tooltips using TypeScript. The code sample shows how to initialize tooltips for elements with the data-bs-toggle attribute.

const tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
const tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
  return new bootstrap.Tooltip(tooltipTriggerEl);
});

Carousel

This feature allows you to create and control carousels using TypeScript. The code sample demonstrates how to initialize a carousel with specific options.

const myCarousel = document.querySelector('#myCarousel');
const carousel = new bootstrap.Carousel(myCarousel, {
  interval: 2000,
  wrap: false
});

Other packages similar to @types/bootstrap

FAQs

Package last updated on 21 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc