
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
bpk-component-fieldset
Advanced tools
Backpack fieldset component.
npm install bpk-component-fieldset --save-dev
import React, { Component } from 'react';
import BpkFieldset from 'bpk-component-fieldset';
import BpkInput, { INPUT_TYPES } from 'bpk-component-input';
class FieldsetContainer extends Component {
constructor(props) {
super(props);
this.state = {
value: '',
};
}
onChange = (e) => {
this.setState({
value: e.target.value,
});
}
render() {
const isValid = this.state.value !== '';
return (
<BpkFieldset
label="Name"
validationMessage="Please enter a name"
>
<BpkInput
id="name_input"
name="name"
type={INPUT_TYPES.text}
placeholder="e.g. Joe Bloggs"
value={this.state.value}
valid={isValid}
/>
</BpkFieldset>
);
}
}
| Property | PropType | Required | Default Value |
|---|---|---|---|
| children | node | true | - |
| label | string | true | - |
| className | string | false | null |
| disabled | bool | false | false |
| isCheckbox | bool | false | false |
| required | bool | false | false |
| valid | bool | false | null |
| validationMessage | string | false | null |
| validationProps | object | false | {} |
| description | string | false | null |
Note: There are a couple of props that behave differently when using
isCheckbox:
valid: checkboxes don't have a valid prop so you have to apply it to the fieldset directlylabel: checkboxes have their own labels so it's safe to omit these
FAQs
Backpack fieldset component.
The npm package bpk-component-fieldset receives a total of 475 weekly downloads. As such, bpk-component-fieldset popularity was classified as not popular.
We found that bpk-component-fieldset demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?

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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.