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: docs/api-reference/user-interface/list.md
+4-10Lines changed: 4 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -584,12 +584,9 @@ export default function Command() {
584
584
585
585
### List.EmptyView
586
586
587
-
A view to display when there aren't any items available. Use to greet users with a friendly message if the
588
-
extension requires user input before it can show any list items e.g. when searching for a package, an article etc.
587
+
A view to display when there aren't any items available. Use to greet users with a friendly message if the extension requires user input before it can show any list items e.g. when searching for a package, an article etc.
589
588
590
-
Raycast provides a default `EmptyView` that will be displayed if the List component either has no children,
591
-
or if it has children, but none of them match the query in the search bar. This too can be overridden by passing an
592
-
empty view alongside the other `List.Item`s.
589
+
Raycast provides a default `EmptyView` that will be displayed if the List component either has no children, or if it has children, but none of them match the query in the search bar. This too can be overridden by passing an empty view alongside the other `List.Item`s.
593
590
594
591
Note that the `EmptyView` is _never_ displayed if the `List`'s `isLoading` property is true and the search bar is empty.
595
592
@@ -628,9 +625,7 @@ export default function CommandWithCustomEmptyView() {
628
625
629
626
A item in the [List](#list).
630
627
631
-
This is one of the foundational UI components of Raycast. A list item represents a single entity. It can be a
632
-
GitHub pull request, a file, or anything else. You most likely want to perform actions on this item, so make it clear
633
-
to the user what this list item is about.
628
+
This is one of the foundational UI components of Raycast. A list item represents a single entity. It can be a GitHub pull request, a file, or anything else. You most likely want to perform actions on this item, so make it clear to the user what this list item is about.
634
629
635
630
#### Example
636
631
@@ -945,8 +940,7 @@ export default function Metadata() {
945
940
946
941
A group of related [List.Item](#list.item).
947
942
948
-
Sections are a great way to structure your list. For example, group GitHub issues with the same status and order them by priority.
949
-
This way, the user can quickly access what is most relevant.
943
+
Sections are a great way to structure your list. For example, group GitHub issues with the same status and order them by priority. This way, the user can quickly access what is most relevant.
Copy file name to clipboardExpand all lines: extensions/evaluate-math-expression/package.json
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -75,5 +75,8 @@
75
75
"lint": "ray lint",
76
76
"prepublishOnly": "echo \"\\n\\nIt seems like you are trying to publish the Raycast extension to npm.\\n\\nIf you did intend to publish it to npm, remove the \\`prepublishOnly\\` script and rerun \\`npm publish\\` again.\\nIf you wanted to publish it to the Raycast Store instead, use \\`npm run publish\\` instead.\\n\\n\" && exit 1",
Copy file name to clipboardExpand all lines: extensions/not-diamond/package.json
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -124,5 +124,8 @@
124
124
"lint": "ray lint",
125
125
"prepublishOnly": "echo \"\\n\\nIt seems like you are trying to publish the Raycast extension to npm.\\n\\nIf you did intend to publish it to npm, remove the \\`prepublishOnly\\` script and rerun \\`npm publish\\` again.\\nIf you wanted to publish it to the Raycast Store instead, use \\`npm run publish\\` instead.\\n\\n\" && exit 1",
0 commit comments