Add Video Rows

This commit is contained in:
Sam Carlton 2021-01-29 17:32:55 -06:00
parent 2342c01b7e
commit 3553923530
5 changed files with 182 additions and 21 deletions

View file

@ -9,10 +9,11 @@ function pill ( text ) {
`
}
export default function ( video, {
width = '325px',
classes = 'w-full flex-shrink-0 flex-grow-0 border-2 border-transparent rounded-2xl overflow-hidden'
} ) {
export default function ( video, options = {} ) {
const {
width = '325px',
classes = 'w-full flex-shrink-0 flex-grow-0 border-2 border-transparent rounded-2xl overflow-hidden'
} = options
// Setup inline lazysizes
this.usingComponent( 'node_modules/lazysizes/lazysizes.min.js' )