File
import * as React from "react"
import { Frame, addPropertyControls, ControlType } from "framer"
export function MyComponent(props) {
return (
<Frame size={"100%"}>
<video
style={{
objectFit: "contain",
width: props.width,
height: props.height,
}}
src={props.filepath}
controls
/>
</Frame>
)
}
MyComponent.defaultProps = {
width: 300,
height: 200,
}
addPropertyControls(MyComponent, {
filepath: {
type: ControlType.File,
allowedFileTypes: ["mov"],
},
})Last updated