# material-ui-share

> Material style share

Latest version **0.1.1** (published 2017-10-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install material-ui-share
pnpm add material-ui-share
yarn add material-ui-share
bun add material-ui-share
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2017-10-16 |
| First published | 2017-10-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Wertarbyte |
| Maintainers | saschb2b |
| Keywords | react, material, material-design, material-ui, share, react-component |

## Links

- npm: https://www.npmjs.com/package/material-ui-share
- Repository: https://github.com/TeamWertarbyte/material-ui-share
- Homepage: https://github.com/TeamWertarbyte/material-ui-share#readme
- Issues: https://github.com/TeamWertarbyte/material-ui-share/issues
- npm.io page: https://npm.io/package/material-ui-share

## Dependencies (1)

- [prop-types](https://npm.io/package/prop-types.md) ^15.5.8

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2017-10-16

## README

# Material Share
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![Build Status](https://travis-ci.org/TeamWertarbyte/material-ui-share.svg?branch=master)](https://travis-ci.org/TeamWertarbyte/material-ui-share)
[![Greenkeeper badge](https://badges.greenkeeper.io/TeamWertarbyte/material-ui-share.svg)](https://greenkeeper.io/)

![Example](santa-phone.png)
[![Alt text](https://img.youtube.com/vi/lhUzYxCvWew/0.jpg)](https://www.youtube.com/watch?v=lhUzYxCvWew)

With chrome 61 on mobile the Web Share Api was deployed. You can now invoke the native share action inside your browser.
You can read more about [here](https://developers.google.com/web/updates/2016/09/navigator-share)

[other browsers will follow](https://caniuse.com/#feat=web-share)

To use the Web Share Api:
* you must be served over HTTPS
* you can also share any URL, not just URLs under your website's current scope: and you may also share text without a URL
* you should feature-detect it in case it's not available on your users' platform (e.g., via `navigator.share !== undefined`)

## Installation
```shell
npm i --save material-ui-share
```

## Usage
```js
import Share from 'material-ui-share'

// ...
render() {
  return(
    <Share
        title='This is a cool title'
        text='Oh you want some text for this share component'
        url='https://developers.google.com/web/updates/2016/09/navigator-share'
    />
  )
}
```

### SearchBar Properties
|Name            |Type        |Default     |Description
|----------------|------------|------------|--------------------------------
|title           | `string`   |            | Sets title for content to share.
|text            | `string`   |            | Sets text for content to share.
|url             | `string`   |            | Sets url for content to share.
|onFailure       | `func`     |            | Fired when share action returns an error.
|onSuccess       | `func`     |            | Fired when share action succeeded.
|style           | `object`   |            | Override the inline-styles of the root element.

\* required property

## License

The files included in this repository are licensed under the MIT license.

---
_Source: https://npm.io/package/material-ui-share · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
