Created
February 13, 2023 16:30
-
-
Save sh-ravan/48ad3a963cbf10474d605878fb876ea0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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