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

@financial-times/g-audio

Package Overview
Dependencies
Maintainers
10
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@financial-times/g-audio

IG audio player component

  • 2.0.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
10
Created
Source

g-audio

This is an origami component to help create styled audio players for IG pages. This is currently experimental.

Check out how to include Origami components in your project to get started with g-audio.

Getting started

Install the module:

npm install @financial-times/g-audio

Load the JS:

import GAudio from '@financial-times/g-audio';

GAudio.init();

Load the CSS:

@import '@financial-times/g-audio/main';

@include gAudio();

Copy markup from one of the following demos:

To create an audio player inline with text:

<span class="g-audio">
  Bring to the table win-win survival
  <audio controls>
    <source src="demo.mp3" type="audio/mpeg">
  </audio>
</span>

To create an audio player between paragraphs of text (in development):

<span class="g-audio g-audio--block">
  Podcasting operational change management
  <audio controls>
    <source src="demo2.mp3" type="audio/mpeg">
  </audio>
</span>

Migration

StateMajor VersionLast Minor ReleaseMigration guide
✨ active2N/Amigrate to v2
⚠ maintained11.0.7N/A

Licence

This software is published by the Financial Times under the MIT licence.

Keywords

FAQs

Package last updated on 13 Feb 2024

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