File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ export type MiniMapProps = {
1919 children : React . ReactNode ;
2020 width ?: number ;
2121 height ?: number ;
22+ borderColor ?: string ;
2223} & React . DetailedHTMLProps <
2324 React . HTMLAttributes < HTMLDivElement > ,
2425 HTMLDivElement
@@ -38,6 +39,7 @@ const previewStyles = {
3839export const MiniMap : React . FC < MiniMapProps > = ( {
3940 width = 200 ,
4041 height = 200 ,
42+ borderColor = "red" ,
4143 children,
4244 ...rest
4345} ) => {
@@ -176,7 +178,11 @@ export const MiniMap: React.FC<MiniMapProps> = ({
176178 < div { ...rest } ref = { wrapperRef } className = "rzpp-wrapper" >
177179 { children }
178180 </ div >
179- < div className = "rzpp-preview" ref = { previewRef } style = { previewStyles } />
181+ < div
182+ className = "rzpp-preview"
183+ ref = { previewRef }
184+ style = { { ...previewStyles , borderColor } }
185+ />
180186 </ div >
181187 ) ;
182188} ;
You can’t perform that action at this time.
0 commit comments