Skip to content

internalio/react-internalio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-internalio

Internal.io's React SDK. Provides a component for embedding Spaces in React applications.

Install

// with npm
$ npm install react-internalio

// with yarn
$ yarn add react-internalio

Usage

import { Space } from "react-internalio";

function App() {
  return (
    <Space
      url="https://secure.internal.io/environments/default/spaces/example"
      params={{ id: "123"}}
    />
  )
}

Props

  • url - The url of the Internal.io Space to embed. Required
  • params - An object that will be serialized into query string parameters and passed to the Space.
  • width - A value for the width style defaulting to "100%".
  • height - A value for the height style defaulting to "100%".

Example

Run yarn start for a demo app that allows for simple testing of embedded Internal.io Spaces.

Publishing

  1. Bump version with: npm version [major|minor|patch]
  2. Run yarn publish:npm

Support

If you have any issues please contact [email protected].

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published