You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/v2/components/media/photoCapture/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ The legacy flat import path `solid-ui/components/photo-capture` still works, but
40
40
|`label`|`label`|`string`|`Take Photo`| Trigger button label. Ignored when `show-trigger` is false and `presentation="inline"`. |
41
41
|`heading`|`heading`|`string`|`Take a photo`| Panel heading. |
42
42
|`presentation`|`presentation`|`'inline' \| 'dialog'`|`'inline'`| Controls whether the capture UI sits in-page or inside a native dialog. |
43
-
|`open`|`open`|`boolean`|`true`| Controls whether the capture panel is visible. |
43
+
|`open`|`open`|`boolean`|`false`| Controls whether the capture panel is visible. |
44
44
|`name`|`name`|`string`|`''`| Form field name used when the component participates in form submission. |
45
45
|`required`|`required`|`boolean`|`false`| Marks the control as required for form validation. |
46
46
|`value`| none |`File \| null`|`null`| The current captured file. Settable from JavaScript. |
@@ -74,7 +74,7 @@ The legacy flat import path `solid-ui/components/photo-capture` still works, but
74
74
75
75
## Notes
76
76
77
-
- Inline mode is the default, so the component can be embedded directly inside a page or form.
77
+
- Inline mode is the default presentation, and the panel starts closed until `open` is set or the trigger button is used.
78
78
- Dialog mode uses the native `<dialog>` element and is useful when the capture flow should float above the current page.
79
79
- The component does not upload the photo itself. Consumers can persist it by reading `value`, listening for `change`, or handling `photo-captured`.
80
80
- When form-associated custom elements are supported, the component uses `ElementInternals`. Otherwise it still supports form-style submission via the form's `formdata` event.
0 commit comments