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

export default {
  title: "CInput",
  component: CInput,
  argTypes: {
    label: String,
    placeholder: String,
    addon: String,
    hint: String,
    helpText: String,
    isValidate: Boolean,
    value: String,
    disabled: Boolean,
    type: String,
  },
};

const Template = (args, { argTypes }) => ({
  props: Object.keys(argTypes),
  components: { CInput },
  template: '<c-input 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,
  disabled: true,
  type: "text",
};
