import CInputAddon from "../components/CInputAddon/CInputAddon.vue";
import "./utils.css";

export default {
  title: "CInputAddon",
  component: CInputAddon,
  argTypes: {
    addonType: {
      control: { type: "select", options: ["leading", "trailing"] },
    },
    helpTextColor: {
      control: { type: "select", options: ["gray", "red", "green"] },
    },
    disabled: Boolean,
  },
};

const Template = (args, { argTypes }) => ({
  props: Object.keys(argTypes),
  components: { CInputAddon },
  template: '<c-input-addon v-bind="$props" />',
});

export const Default = Template.bind({});
Default.args = {
  label: "Name",
  placeholder: "Enter your name",
  addon: "AED",
  hint: "Optional",
  helpText: "Any message",
  isValidate: true,
  addonType: "leading",
  helpTextColor: "gray",
  inlineAddon: false,
  disabled: true,
  inputType: "text",
};
