How to use @lrnwebcomponents/simple-picker - 1 common examples

To help you get started, we’ve selected a few @lrnwebcomponents/simple-picker examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github elmsln / lrnwebcomponents / elements / simple-icon-picker / simple-icon-picker.story.js View on Github external
* add to the pattern library
 */
const SimpleIconPickerPattern = {
  of: "Pattern Library/Atoms/Forms",
  name: "Icon Picker",
  file: require("raw-loader!./demo/index.html"),
  replacements: []
};
window.StorybookUtilities.instance.addPattern(SimpleIconPickerPattern);

/**
 * add the live demo
 */
const props = Object.assign(
  SimpleIconPicker.properties,
  SimplePicker.properties
);
delete props.hideOptionLabels;
delete props.options;
delete props.titleAsHtml;
props.label.value = "Pick an Icon";
props.icons.value = [
  "check",
  "clear",
  "search",
  "arrow-back",
  "arrow-downward",
  "arrow-forward",
  "arrow-upward"
];
const SimpleIconPickerStory = {
  of: "Web Components",

@lrnwebcomponents/simple-picker

a simple picker for swatches, icons, etc.

Apache-2.0
Latest version published 2 months ago

Package Health Score

79 / 100
Full package analysis

Popular @lrnwebcomponents/simple-picker functions