@amplifyup/sdk 0.1.49 → 0.1.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -66,18 +66,20 @@ export default function Page() {
66
66
  ```tsx
67
67
  import { Field, Slot } from '@amplifyup/sdk/react';
68
68
 
69
- export function Hero() {
69
+ export function Hero({ heading }: { heading: string }) {
70
70
  return (
71
71
  <section>
72
72
  <h1>
73
- <Field name="heading" fallback="Welcome" />
73
+ <Field value={heading} fallback="Welcome" />
74
74
  </h1>
75
75
  </section>
76
76
  );
77
77
  }
78
78
  ```
79
79
 
80
- Field names must match the component registry in AmplifyUp. Connect CMS documents in Composer, then **Deploy** so Edge can serve the page.
80
+ Pass `value={…}` from your component props (preferred). Deprecated `name="…"`
81
+ lookup still works alone — do not pass both. Connect CMS documents in Composer,
82
+ then **Deploy** so Edge can serve the page.
81
83
 
82
84
  ## Content sources
83
85