You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

bpk-component-select

Package Overview
Dependencies
Maintainers
7
Versions
512
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bpk-component-select

Backpack select component.

6.1.2
latest
Source
npmnpm
Version published
Maintainers
7
Created
Source

bpk-component-select

Backpack select component.

Installation

npm install bpk-component-select --save-dev

Usage

import React from 'react';
import BpkSelect from 'bpk-component-select';

export default () => (
  <BpkSelect
    id="fruits"
    name="fruits"
    value="oranges"
    onChange={(e) => console.log(`select changed to ${e.target.value}`)}
  >
    <option value="apples">Apples</option>
    <option value="oranges">Oranges</option>
    <option value="pears">Pears</option>
  </BpkSelect>
);

Props

PropertyPropTypeRequiredDefault Value
idstringtrue-
namestringtrue-
valuestringtrue-
onChangefunctrue-
validboolfalsenull
largeboolfalsefalse
disabledboolfalsefalse
dockedboolfalsefalse
dockedFirstboolfalsefalse
dockedMiddleboolfalsefalse
dockedLastboolfalsefalse
imagenodefalsenull
wrapperClassNamestringfalsenull

FAQs

Package last updated on 30 Sep 2022

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