Add component snippet