import { ViewComponent } from "https://deno.land/x/tui@1.3.4/src/components/mod.ts";
Parameters
optional
component: Component<EventRecord>if specified then checks and updates offsets when given component overflows current offsets otherwise it loops over components to recalculate offsets