Fix plugin is non-instanceable

Add custom attr example