Skip to content

Instantly share code, notes, and snippets.

@sh-ravan
Created February 13, 2023 16:30
Show Gist options
  • Save sh-ravan/48ad3a963cbf10474d605878fb876ea0 to your computer and use it in GitHub Desktop.
Save sh-ravan/48ad3a963cbf10474d605878fb876ea0 to your computer and use it in GitHub Desktop.
import Input from '../components/atoms/input.vue';
export default {
title: 'Components/Atoms',
component: Input,
argTypes: {
type: {
control: 'radio',
options: ['text', 'email'],
},
placeholder: {
control: 'text',
},
},
};
export const Input = {
render: args => ({
components: { Input },
setup() {
return { args };
},
template: '<Input v-bind="args" />',
}),
args: {
type: 'text',
placeholder: 'Enter text',
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment