@financial-times/x-audio

0.0.1-alpha.2 • Public • Published

x-audio

This module has these features and scope.

Installation

This module is compatible with Node 6+ and is distributed on npm.

npm install --save @financial-times/x-audio

The x-engine module is used to inject your chosen runtime into the component. Please read the x-engine documentation first if you are consuming x- components for the first time in your application.

Usage

The components provided by this module are all functions that expect a map of properties. They can be used with vanilla JavaScript or JSX (If you are not familiar check out WTF is JSX first). For example if you were writing your application using React you could use the component like this:

import React from 'react';
import { Audio } from '@financial-times/x-audio';

// A == B == C
const a = Audio(props);
const b = <Audio {...props} />;
const c = React.createElement(Audio, props);

All x- components are designed to be compatible with a variety of runtimes, not just React. Check out the x-engine documentation for a list of recommended libraries and frameworks.

Properties

Feature Type Notes
propertyName1 String
propertyName2 String
propertyName2 String

Readme

Keywords

Package Sidebar

Install

npm i @financial-times/x-audio

Weekly Downloads

1

Version

0.0.1-alpha.2

License

ISC

Unpacked Size

18.8 kB

Total Files

5

Last publish

Collaborators

  • robgodfrey
  • robertboulton
  • seraph2000
  • hamza.samih
  • notlee
  • emmalewis
  • aendra
  • the-ft
  • rowanmanning
  • chee
  • alexwilson