tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

multiline-editor.stories.mjs (793B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 import { html } from "chrome://global/content/vendor/lit.all.mjs";
      6 import "chrome://browser/content/multilineeditor/multiline-editor.mjs";
      7 
      8 export default {
      9  title: "UI Widgets/Multiline Editor",
     10  component: "moz-multiline-editor",
     11  argTypes: {
     12    action: {
     13      options: [null, "chat", "search", "navigate"],
     14      control: { type: "select" },
     15    },
     16  },
     17 };
     18 
     19 const Template = ({ placeholder }) => html`
     20  <moz-multiline-editor .placeholder=${placeholder}></moz-multiline-editor>
     21 `;
     22 
     23 export const Default = Template.bind({});
     24 Default.args = {
     25  placeholder: "Placeholder text",
     26 };