Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
bpk-component-star-rating
Advanced tools
Backpack rating star component.
npm install bpk-component-star-rating --save-dev
import React from 'react';
import BpkStarRating, {
BpkStar,
STAR_TYPES,
BpkInteractiveStarRating,
withInteractiveStarRatingState
} from 'bpk-component-star-rating';
const InteractiveStarRating = withInteractiveStarRatingState(BpkInteractiveStarRating);
export default () => (
<div>
<BpkStar
type={STAR_TYPES.HALF}
/>
<BpkStarRating
rating={3.5}
large
ratingLabel={(rating, maxRating) => `Rated ${rating} out of ${maxRating} stars`}
/>
<InteractiveStarRating
id="large-star-rating"
onRatingSelect={(rating) => console.log(rating)}
getStarLabel={(rating, maxRating) => `${rating} out of ${maxRating} stars`}
/>
</div>
);
Property | PropType | Required | Default Value |
---|---|---|---|
ratingLabel | oneOfType(string, func) | true | - |
className | string | false | null |
large | bool | false | false |
maxRating | number | false | 5 |
rating | number | false | 0 |
rounding | oneOf(ROUNDING_TYPES) | false | ROUNDING_TYPES.down |
Property | PropType | Required | Default Value |
---|---|---|---|
type | oneOf(STAR_TYPES) | true | - |
className | string | false | null |
large | bool | false | false |
Property | PropType | Required | Default Value |
---|---|---|---|
onRatingSelect | func | false | () => null |
Property | PropType | Required | Default Value |
---|---|---|---|
getStarLabel | func | true | - |
id | string | true | - |
className | string | false | null |
hoverRating | number | false | 0 |
large | bool | false | false |
maxRating | number | false | 5 |
onMouseLeave | func | false | () => null |
onRatingHover | func | false | () => null |
onRatingSelect | func | false | () => null |
rating | number | false | 0 |
Property | PropType | Required | Default Value |
---|---|---|---|
label | bool | true | - |
name | bool | true | - |
type | oneOf(STAR_TYPES) | true | - |
value | number | true | - |
onClick | func | true | - |
onMouseEnter | func | true | - |
selected | bool | false | false |
starRatingFilledColor
FAQs
Backpack rating star component.
The npm package bpk-component-star-rating receives a total of 0 weekly downloads. As such, bpk-component-star-rating popularity was classified as not popular.
We found that bpk-component-star-rating demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.