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

export default {
  title: "CTag",
  component: CTag,
  argTypes: {
    label: String,
    color: {
      control: {
        type: "select",
        options: ["gray", "red", "yellow", "green", "blue", "purple", "pink", "indigo", "orange", "white"],
      },
    },
    showIcon: Boolean,
    tagClasses: String,
  },
};

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

export const Default = Template.bind({});
Default.args = {
  label: "Active",
  color: "green",
  icon: {
    name: "newspaper-outline",
    type: "outline",
    class: "h-5 w-5 mr-2 text-green-400",
  },
  showIcon: true,
  tagClasses: ""
};
