3.0.1 • Published 2 months ago

@ta-interaktiv/react-autofit-iframe v3.0.1

Weekly downloads
18
License
ISC
Repository
gitlab
Last release
2 months ago

Autofit iFrame Component

Use DataWrapper charts in React standalones.

Installation

yarn add @ta-interaktiv/react-autofit-iframe

Usage

import React from 'react'
import { AutofitIFrame } from '@ta-interaktiv/react-autofit-iframe'

export function YourComponent() {
  return (
    <div>
      <AutofitIFrame src='https://datawrapper.dwcdn.net/vyp2p/2/' />
    </div>
  )
}

The AutofitIFrame component supports all attributes of a normal iframe element, but automatically sets some of them per default.

With DataWrapper

See the example above. It's best to remove any width, height, and style attributes, so that they won't interfere with Autofit doing its magic.

Documentation

Can be found here.

3.0.1

2 months ago

3.0.0

6 months ago

2.0.3

2 years ago

2.0.4

2 years ago

2.0.2

3 years ago

2.0.0

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.1-alpha.1275

5 years ago