Like
Install video as a package?
Copied
npm i @bit/dennisdigital.components.molecules.video
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
chevron_left
chevron_right
Video ()
Video component
Properties
Name | Type | Default value |
---|---|---|
url (required) | string | |
playing | bool | null |
autoplay | bool | null |
width | number | string | '100%' |
height | number | string | '100%' |
extraClassNames | {} | {} |
context | {} | {} |
Test Summary
should render without defined props, except rewuired ones, like url | Pass |
check if React Player is rendered | Pass |
check if YouTube is rendered | Pass |
check if props are passed to React Player | Pass |
check if autoplay prop is passed to the player | Pass |