gc-custom-components
Version:
Instalar
43 lines (42 loc) • 886 B
JavaScript
import { MyLabel } from '../components/MyLabel';
const meta = {
title: 'UI/Labels/MyLabel',
component: MyLabel,
tags: ['autodocs'],
parameters: {
layout: 'centered'
},
argTypes: {
size: { control: 'inline-radio' },
fontColor: { control: 'color' },
allCaps: { control: 'boolean' },
color: { control: 'inline-radio' }
}
};
export default meta;
export const Basic = {
args: {
label: 'Hello World'
}
};
export const AllCaps = {
args: {
label: 'All Caps label',
size: 'normal',
allCaps: true
}
};
export const Secondary = {
args: {
label: 'Secondary label',
size: 'normal',
color: 'text-secondary'
}
};
export const CustomColor = {
args: {
label: 'Custom color label',
size: 'normal',
fontColor: '#6a07f4'
}
};