{
    "componentChunkName": "component---src-layouts-rails-component-layout-tsx",
    "path": "/components/action-menu/rails",
    "result": {"data":{"primerRailsVersion":{"version":"0.1.9"},"sitePage":{"path":"/components/action-menu","context":{"frontmatter":{"title":"Action menu","description":"Action menu is composed of action list and overlay patterns used for quick actions and selections.","reactId":"action_menu","railsId":"Primer::Alpha::ActionMenu","figmaId":null}}},"railsComponent":{"name":"ActionMenu","railsId":"Primer::Alpha::ActionMenu","description":"ActionMenu is used for actions, navigation, to display secondary options, or single/multi select lists. They appear when users interact with buttons, actions, or other controls.\n\nThe only allowed elements for the `Item` components are: `:a`, `:button`, and `:clipboard-copy`. The default is `:button`.","status":"alpha","a11y_reviewed":false,"short_name":"ActionMenu","is_form_component":false,"is_published":true,"props":[{"name":"menu_id","type":"String","description":"Id of the menu.","default":"`self.class.generate_id`"},{"name":"anchor_align","type":"Symbol","description":"One of `:center`, `:end`, or `:start`..","default":"`:start`"},{"name":"anchor_side","type":"Symbol","description":"One of `:inside_bottom`, `:inside_center`, `:inside_left`, `:inside_right`, `:inside_top`, `:outside_bottom`, `:outside_left`, `:outside_right`, or `:outside_top`..","default":"`:outside_bottom`"},{"name":"size","type":"Symbol","description":"One of `:auto`, `:large`, `:medium`, `:medium_portrait`, `:small`, or `:xlarge`..","default":"`:auto`"},{"name":"src","type":"String","description":"Used with an `include-fragment` element to load menu content from the given source URL.","default":"`nil`"},{"name":"preload","type":"Boolean","description":"When true, and src is present, loads the `include-fragment` on trigger hover.","default":"`false`"},{"name":"dynamic_label","type":"Boolean","description":"Whether or not to display the text of the currently selected item in the show button.","default":"`false`"},{"name":"dynamic_label_prefix","type":"String","description":"If provided, the prefix is prepended to the dynamic label and displayed in the show button.","default":"`nil`"},{"name":"select_variant","type":"Symbol","description":"One of `:multiple`, `:none`, or `:single`.","default":"`:none`"},{"name":"form_arguments","type":"Hash","description":"Allows an `ActionMenu` to act as a select list in multi- and single-select modes. Pass the `builder:` and `name:` options to this hash. `builder:` should be an instance of `ActionView::Helpers::FormBuilder`, which are created by the standard Rails `#form_with` and `#form_for` helpers. The `name:` option is the desired name of the field that will be included in the params sent to the server on form submission.","default":"`{}`"},{"name":"system_arguments","type":"Hash","description":"{{link_to_system_arguments_docs}}.","default":"N/A"}],"slots":[{"description":"Button to activate the menu.","name":"show_button","parameters":[{"default":"N/A","description":"The arguments accepted by {{#link_to_component}}Primer::Alpha::Overlay{{/link_to_component}}'s `show_button` slot.","name":"system_arguments","type":"Hash"}]},{"description":"Adds a new item to the list.","name":"items","parameters":[{"default":"N/A","description":"The arguments accepted by {{#link_to_component}}Primer::Alpha::ActionList::Item{{/link_to_component}}.","name":"system_arguments","type":"Hash"}]}],"methods":[{"name":"list","description":"Returns the value of attribute list.","parameters":[]},{"name":"preload","description":"Returns the value of attribute preload.","parameters":[]},{"name":"preload?","description":"Returns the value of attribute preload.","parameters":[]},{"name":"with_show_button","description":"Button to activate the menu.","parameters":[{"default":"N/A","description":"The arguments accepted by {{#link_to_component}}Primer::Alpha::Overlay{{/link_to_component}}'s `show_button` slot.","name":"system_arguments","type":"Hash"}]},{"name":"with_item","description":"Adds a new item to the list.","parameters":[{"default":"N/A","description":"The arguments accepted by {{#link_to_component}}Primer::Alpha::ActionList::Item{{/link_to_component}}.","name":"system_arguments","type":"Hash"}]},{"name":"with_divider","description":"Adds a divider to the list.","parameters":[{"default":"N/A","description":"The arguments accepted by {{#link_to_component}}Primer::Alpha::ActionList{{/link_to_component}}'s `divider` slot.","name":"system_arguments","type":"Hash"}]}],"previews":[{"name":"playground","preview_path":"primer/alpha/action_menu/playground"},{"name":"content_labels","preview_path":"primer/alpha/action_menu/content_labels"},{"name":"default","preview_path":"primer/alpha/action_menu/default"},{"name":"wide","preview_path":"primer/alpha/action_menu/wide"},{"name":"with_icon_button","preview_path":"primer/alpha/action_menu/with_icon_button"},{"name":"single_select","preview_path":"primer/alpha/action_menu/single_select"},{"name":"multiple_select","preview_path":"primer/alpha/action_menu/multiple_select"},{"name":"links","preview_path":"primer/alpha/action_menu/links"},{"name":"single_selected_item","preview_path":"primer/alpha/action_menu/single_selected_item"},{"name":"single_select_with_internal_label","preview_path":"primer/alpha/action_menu/single_select_with_internal_label"},{"name":"multiple_selected_items","preview_path":"primer/alpha/action_menu/multiple_selected_items"},{"name":"with_deferred_content","preview_path":"primer/alpha/action_menu/with_deferred_content"},{"name":"with_deferred_preloaded_content","preview_path":"primer/alpha/action_menu/with_deferred_preloaded_content"},{"name":"with_actions","preview_path":"primer/alpha/action_menu/with_actions"},{"name":"single_select_form","preview_path":"primer/alpha/action_menu/single_select_form"},{"name":"multiple_select_form","preview_path":"primer/alpha/action_menu/multiple_select_form"},{"name":"with_disabled_items","preview_path":"primer/alpha/action_menu/with_disabled_items"},{"name":"opens_dialog","preview_path":"primer/alpha/action_menu/opens_dialog"},{"name":"align_end","preview_path":"primer/alpha/action_menu/align_end"},{"name":"block_description","preview_path":"primer/alpha/action_menu/block_description"},{"name":"submitting_forms","preview_path":"primer/alpha/action_menu/submitting_forms"},{"name":"inline_description","preview_path":"primer/alpha/action_menu/inline_description"},{"name":"leading_visual","preview_path":"primer/alpha/action_menu/leading_visual"},{"name":"leading_visual_single_select","preview_path":"primer/alpha/action_menu/leading_visual_single_select"}],"subcomponents":[{"name":"ActionMenu::List","railsId":"Primer::Alpha::ActionMenu::List","description":"This component is part of {{#link_to_component}}Primer::Alpha::ActionMenu{{/link_to_component}} and should not be\nused as a standalone component.","status":"alpha","a11y_reviewed":false,"short_name":"ActionMenuList","props":[{"name":"menu_id","type":"String","description":"ID of the parent menu.","default":"N/A"},{"name":"system_arguments","type":"Hash","description":"The arguments accepted by {{#link_to_component}}Primer::Alpha::ActionList{{/link_to_component}}","default":"N/A"}],"slots":[{"description":"Heading text rendered above the list of items.","name":"heading","parameters":[{"default":"N/A","description":"The arguments accepted by {{#link_to_component}}Primer::Alpha::ActionList::Heading{{/link_to_component}}.","name":"system_arguments","type":"Hash"}]},{"description":"Items.","name":"items","parameters":[{"default":"N/A","description":"The arguments accepted by {{#link_to_component}}Primer::Alpha::ActionList::Item{{/link_to_component}}.","name":"system_arguments","type":"Hash"}]}],"methods":[{"name":"with_item","description":"Adds a new item to the list.","parameters":[{"default":"`{}`","description":"When the menu is used as a form input (see the {{#link_to_component}}Primer::Alpha::ActionMenu{{/link_to_component}} docs), the label is submitted to the server by default. However, if the `data: { value: }` or `\"data-value\":` attribute is provided, it will be sent to the server instead.","name":"data","type":"Hash"},{"default":"N/A","description":"The same arguments accepted by {{#link_to_component}}Primer::Alpha::ActionList::Item{{/link_to_component}}.","name":"system_arguments","type":"Hash"}]}]}]}},"pageContext":{"componentId":"Primer::Alpha::ActionMenu","parentPath":"/components/action-menu"}},
    "staticQueryHashes": ["2468112454","2580293464","2745756513","2790671566","3907230164"]}