Help about extension creation

Can anyone tell me how can I make extension just like web we import one extension then it will import in 2-3 sub parts just custom webview of sunny ?