Socket
Book a DemoInstallSign in
Socket

float-ps

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

float-ps

Pokemon Showdown Common Elements

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

float-ps Build Status Dependency Status devDependency Status

Pokemon Showdown Common Elements.

Usage

const Float = require('float-ui');
const Float_PS = require('float-ps');

Float.extendElements(Float_PS);

console.log(Float.renderElement('<CommandButton command="Hi">Say Hi!</CommandButton>'));
// => <button name="send" value="Hi">Say Hi!</button>

Install

$ npm install --save float-ps

Elements

Break

Converts into multiple <br> tags.

Prop:

  • amount: Number

Example:

<Break amount="5"></Break>
// => <br></br><br></br><br></br><br></br><br></br>

CommandButton

Creates a button that parses a command.

Prop:

  • command: String

Example:

<CommandButton command="/say hi">Click me!</CommandButton>
// => <button name="send" value="/me says hi">Click me!</button>

JoinRoom

Link to a room.

Prop:

  • room: String

Example:

<JoinRoom room="casino">Click here to earn big bucks!</JoinRoom>
// => <a href="/casino"><button>Click here to earn big bucks!</button></a>

License

MIT © Phil

Keywords

float

FAQs

Package last updated on 22 Jan 2016

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.