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

@material/tab-indicator

Package Overview
Dependencies
Maintainers
15
Versions
1658
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material/tab-indicator

The Material Components for the web tab indicator component

  • 14.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
775K
increased by8.41%
Maintainers
15
Weekly downloads
 
Created

What is @material/tab-indicator?

@material/tab-indicator is a package from Material Design Components (MDC) that provides a visual indicator for tabs. It is used to highlight the active tab in a tab bar, enhancing the user experience by clearly showing which tab is currently selected.

What are @material/tab-indicator's main functionalities?

Basic Tab Indicator

This code snippet demonstrates how to create a basic tab indicator with an underline style. The `mdc-tab-indicator` class is used to define the tab indicator, and the `mdc-tab-indicator__content` class with the `mdc-tab-indicator__content--underline` modifier is used to style the indicator as an underline.

```html
<div class="mdc-tab-indicator">
  <span class="mdc-tab-indicator__content mdc-tab-indicator__content--underline"></span>
</div>
```

Icon Tab Indicator

This code snippet shows how to create a tab indicator with an icon. The `mdc-tab-indicator__content--icon` modifier is used to style the indicator with an icon, and the `material-icons` class is used to specify the icon.

```html
<div class="mdc-tab-indicator">
  <span class="mdc-tab-indicator__content mdc-tab-indicator__content--icon">
    <i class="material-icons">star</i>
  </span>
</div>
```

Sliding Tab Indicator

This code snippet demonstrates how to create a sliding tab indicator. The `mdc-tab-indicator--active` class is used to activate the sliding animation for the tab indicator.

```html
<div class="mdc-tab-indicator mdc-tab-indicator--active">
  <span class="mdc-tab-indicator__content mdc-tab-indicator__content--underline"></span>
</div>
```

Other packages similar to @material/tab-indicator

Keywords

FAQs

Package last updated on 28 Apr 2022

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