/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import { action } from "@storybook/addon-actions"; import { html, ifDefined } from "lit.all.mjs"; import "browser/components/firefoxview/fxview-search-textbox.mjs"; export default { title: "Domain-specific UI Widgets/Firefox View/Search Textbox", component: "fxview-search-textbox", argTypes: { size: { control: { type: "number", min: 1, step: 1 }, }, }, }; const Template = ({ autofocus, placeholder, size }) => html` `; export const Default = Template.bind({}); Default.args = { placeholder: "", }; export const SearchBoxWithPlaceholder = Template.bind({}); SearchBoxWithPlaceholder.args = { ...Default.args, placeholder: "Search", }; export const SearchBoxWithCustomSize = Template.bind({}); SearchBoxWithCustomSize.args = { ...Default.args, size: 32, }; export const SearchBoxWithAutoFocus = Template.bind({}); SearchBoxWithAutoFocus.args = { ...Default.args, autofocus: true, };