Hi Vikas,
In order to be used in a community, your lightning component must implement the “forceCommunity:availableForAllPageTypes” interface and its access must be “global”.
Something like this:
<aura:component implements=”forceCommunity:availableForAllPageTypes” access=”global”>
<aura:attribute name=”greeting” type=”String” default=”Hello” access=”global” />
<aura:attribute name=”subject” type=”String” default=”World” access=”global” />
<div style=”box”>
<span class=”greeting”>{!v.greeting}</span>, {!v.subject}!
</div>
</aura:component>