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
@@ -86,7 +86,7 @@ Icon-only buttons should include an `aria-label`.
86
86
To add additional context for a button label, such as a search icon next to the label for a search field submit, use the `prefix` and `suffix` props. Leading visuals always appear locked to the button label, even if the button is full width.
Copy file name to clipboardexpand all lines: apps/web/content/components/buttons/file-trigger.mdx
+5-5
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ links:
15
15
---
16
16
17
17
<ComponentPreview
18
-
name="demos/components/core/file-trigger/default"
18
+
name="core/file-trigger-default"
19
19
preview={`<FileTrigger>
20
20
<Button prefix={<UploadIcon />}>Upload</Button>
21
21
</FileTrigger>`}
@@ -46,7 +46,7 @@ A `FileTrigger` wraps around a pressable child such as a button, and includes a
46
46
By default, the file trigger will accept any file type. To support only certain file types, pass an array of the [mime type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types) of files via the `acceptedFileTypes` prop.
@@ -69,7 +69,7 @@ To enable selecting directories instead of files, use the `acceptDirectory` prop
69
69
This reflects the [webkitdirectory](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory) HTML attribute and allows users to select directories and their contents. Please note that support for this feature varies from browser to browser.
@@ -81,7 +81,7 @@ To specify the media capture mechanism to capture media on the spot, pass user f
81
81
This behavior only works on mobile devices. On desktop devices, it will open the file system like normal. [Read more about capture](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/capture).
@@ -78,7 +78,7 @@ To add additional context for the `ColorField`, use the `prefix` and `suffix` pr
78
78
A description can be supplied to `ColorField` via the `description` prop. The description is always visible unless the `isInvalid` prop is `true` and an error message is provided.
@@ -125,7 +125,7 @@ Use the `isDisabled` prop to disable the `ColorField`.
125
125
The `isReadOnly` boolean prop makes the `ColorField`'s text content immutable. Unlike `isDisabled`, the `ColorField` remains focusable and the contents can still be copied.
0 commit comments