return Runtime.widget(function(Z,y)y=y or{}local F=Runtime.useInstance(function(Z)return create("\072\105\103\104\108\105\103\104\116",{[Z]="\104\105\103\104\108\105\103\104\116"})end)F.highlight.Adornee=Z Runtime.useEffect(function()F.highlight.OutlineColor=y.outlineColor or Color3.new(1,1,1)F.highlight.FillColor=y.fillColor or Color3.new(1,0,0)end,y.fillColor,y.outlineColor)F.highlight.FillTransparency=y.fillTransparency or.5 F.highlight.OutlineTransparency=y.outlineTransparency or 0 F.highlight.DepthMode=y.depthMode or Enum.HighlightDepthMode.AlwaysOnTop end)
--[=[
	@within Plasma
	@function highlight
	@param adornee Instance
	@param options? HighlightOptions


	Creates a highlight over an instance with the specified options, using the Roblox [Highlight] instance
]=]
return Runtime.widget(function(adornee, options)
	options = options or {}

	local refs = Runtime.useInstance(function(ref)
		return create("Highlight", {
			[ref] = "highlight",
		})
	end)

	refs.highlight.Adornee = adornee

	Runtime.useEffect(function()
		refs.highlight.OutlineColor = options.outlineColor or Color3.new(1, 1, 1)
		refs.highlight.FillColor = options.fillColor or Color3.new(1, 0, 0)
	end, options.fillColor, options.outlineColor)

	refs.highlight.FillTransparency = options.fillTransparency or 0.5
	refs.highlight.OutlineTransparency = options.outlineTransparency or 0
	refs.highlight.DepthMode = options.depthMode or Enum.HighlightDepthMode.AlwaysOnTop
end)
