Use component instead of snippet