order-state-label-component.mdx 703 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ---
  2. title: "OrderStateLabelComponent"
  3. generated: true
  4. ---
  5. ## OrderStateLabelComponent
  6. <GenerationInfo sourceFile="packages/admin-ui/src/lib/core/src/shared/components/order-state-label/order-state-label.component.ts" sourceLine="13" packageName="@vendure/admin-ui" />
  7. Displays the state of an order in a colored chip.
  8. *Example*
  9. ```HTML
  10. <vdr-order-state-label [state]="order.state"></vdr-order-state-label>
  11. ```
  12. ```ts title="Signature"
  13. class OrderStateLabelComponent {
  14. @Input() state: string;
  15. chipColorType: void
  16. }
  17. ```
  18. <div className="members-wrapper">
  19. ### state
  20. <MemberInfo kind="property" type={`string`} />
  21. ### chipColorType
  22. <MemberInfo kind="property" type={``} />
  23. </div>