-module(glaze@basecoat@command).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
-define(FILEPATH, "src/glaze/basecoat/command.gleam").
-export([command/3, command_styled/3, dialog/3, header/2, search_input/4, menu/3, menu_with_empty/4, item/2, item_with_shortcut/3, item_disabled/2, item_link/3, group/2, separator/0, disabled/0, filter/1, keywords/1, force_show/0, open_script/1, close_script/1]).
-if(?OTP_RELEASE >= 27).
-define(MODULEDOC(Str), -moduledoc(Str)).
-define(DOC(Str), -doc(Str)).
-else.
-define(MODULEDOC(Str), -compile([])).
-define(DOC(Str), -compile([])).
-endif.
?MODULEDOC(
" Basecoat documentation: \n"
"\n"
" Fast, composable command menu for quick navigation and actions.\n"
"\n"
" **Note**: This component requires JavaScript from Basecoat.\n"
"\n"
" ## Anatomy\n"
"\n"
" A command menu usually includes a search input and a menu of items grouped\n"
" into sections.\n"
"\n"
" ## Recipe\n"
"\n"
" ```gleam\n"
" import glaze/basecoat/command\n"
" import lustre/element/html\n"
"\n"
" fn my_command() {\n"
" command.command(\"my-command\", [], [\n"
" command.group(\"Suggestions\", [\n"
" command.item([], [html.text(\"Calendar\")]),\n"
" command.item([], [html.text(\"Search Emoji\")]),\n"
" ]),\n"
" ])\n"
" }\n"
" ```\n"
"\n"
" ## References\n"
"\n"
" - MDN ARIA `combobox` role: \n"
" - MDN ARIA `menu` role: \n"
" - MDN ARIA `menuitem` role: \n"
" - MDN `