gi-custom-components-test
Version:
Instalar
46 lines (45 loc) • 885 B
JavaScript
import { MyLabel } from '../components/MyLabel';
const meta = {
title: 'MyLabel',
component: MyLabel,
tags: ['autodocs'],
parameters: {
layout: 'centered'
},
argTypes: {
size: { control: 'inline-radio' },
fontColor: { control: 'color' }
}
};
export default meta;
export const Basic = {
args: {
label: 'Basic label'
}
};
export const AllCaps = {
args: {
label: 'AllCaps label',
allCaps: true
}
};
export const Secondary = {
args: {
label: 'Secondary label',
color: 'text-secondary'
}
};
export const CustomColor = {
args: {
label: 'CustomColor label',
fontColor: '#5517ac'
}
};
export const CustomBackgroundColor = {
args: {
label: 'No Label',
size: 'h1',
fontColor: 'white',
backgroundColor: 'black'
}
};