|
5419 | 5419 | "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/file_tree_view.rb", |
5420 | 5420 | "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/file_tree_view/default/", |
5421 | 5421 | "parameters": [ |
| 5422 | + { |
| 5423 | + "name": "node_variant", |
| 5424 | + "type": "Symbol", |
| 5425 | + "default": "`:div`", |
| 5426 | + "description": "The variant to use for this node. One of `:anchor`, `:button`, or `:div`." |
| 5427 | + }, |
5422 | 5428 | { |
5423 | 5429 | "name": "system_arguments", |
5424 | 5430 | "type": "Hash", |
|
5844 | 5850 | "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/tree_view.rb", |
5845 | 5851 | "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/tree_view/default/", |
5846 | 5852 | "parameters": [ |
| 5853 | + { |
| 5854 | + "name": "node_variant", |
| 5855 | + "type": "Symbol", |
| 5856 | + "default": "`:div`", |
| 5857 | + "description": "The variant to use for this node. One of `:anchor`, `:button`, or `:div`." |
| 5858 | + }, |
5847 | 5859 | { |
5848 | 5860 | "name": "system_arguments", |
5849 | 5861 | "type": "Hash", |
|
5970 | 5982 | "default": "N/A", |
5971 | 5983 | "description": "The node's \"path,\" i.e. this node's label and the labels of all its ancestors. This node should be reachable by traversing the tree following this path." |
5972 | 5984 | }, |
| 5985 | + { |
| 5986 | + "name": "node_variant", |
| 5987 | + "type": "Symbol", |
| 5988 | + "default": "N/A", |
| 5989 | + "description": "The node variant to use for the node's content, i.e. the `:button` or `:div`. One of `:anchor`, `:button`, or `:div`." |
| 5990 | + }, |
| 5991 | + { |
| 5992 | + "name": "href", |
| 5993 | + "type": "String", |
| 5994 | + "default": "`nil`", |
| 5995 | + "description": "The URL to use as the `href` attribute for this node. If set to a truthy value, the `tag:` parameter is ignored and assumed to be `:a`." |
| 5996 | + }, |
5973 | 5997 | { |
5974 | 5998 | "name": "current", |
5975 | 5999 | "type": "Boolean", |
|
5989 | 6013 | "description": "The checked state of the node's checkbox. One of `false`, `mixed`, or `true`." |
5990 | 6014 | }, |
5991 | 6015 | { |
5992 | | - "name": "system_arguments", |
| 6016 | + "name": "content_arguments", |
5993 | 6017 | "type": "Hash", |
5994 | 6018 | "default": "N/A", |
5995 | | - "description": "The arguments accepted by [ActionList](/components/alpha/actionlist)." |
| 6019 | + "description": "Arguments attached to the node's content, i.e the `<button>` or `<a>` element. [System arguments](/system-arguments)" |
5996 | 6020 | } |
5997 | 6021 | ] |
5998 | 6022 | }, |
|
6054 | 6078 | "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/tree_view/sub_tree.rb", |
6055 | 6079 | "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/tree_view/sub_tree/default/", |
6056 | 6080 | "parameters": [ |
| 6081 | + { |
| 6082 | + "name": "node_variant", |
| 6083 | + "type": "Symbol", |
| 6084 | + "default": "N/A", |
| 6085 | + "description": "The variant to use for this node. One of `:anchor`, `:button`, or `:div`." |
| 6086 | + }, |
6057 | 6087 | { |
6058 | 6088 | "name": "system_arguments", |
6059 | 6089 | "type": "Hash", |
|
6110 | 6140 | "default": "N/A", |
6111 | 6141 | "description": "The node's \"path,\" i.e. this node's label and the labels of all its ancestors. This node should be reachable by traversing the tree following this path." |
6112 | 6142 | }, |
| 6143 | + { |
| 6144 | + "name": "node_variant", |
| 6145 | + "type": "Symbol", |
| 6146 | + "default": "N/A", |
| 6147 | + "description": "The variant to use for this node. One of `:anchor`, `:button`, or `:div`." |
| 6148 | + }, |
6113 | 6149 | { |
6114 | 6150 | "name": "expanded", |
6115 | 6151 | "type": "Boolean", |
|
0 commit comments