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

export default {
  title: "CTextarea",
  component: CTextarea,
  argTypes: {
    label: String,
    placeholder: String,
    rows: String,
    helpText: String,
    hint: String,
    isValidate: Boolean,
  },
};

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

export const Default = Template.bind({});
Default.args = {
  label: "Name",
  placeholder: "Enter your name",
  rows: "3",
  helpText: "This information is displayed on booking page",
  hint: "Optional",
  isValidate: true,
  disabled: false,
};
