j2-custom-components
Version:
46 lines (45 loc) • 917 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' },
}
};
export default meta;
export const Basic = {
args: {
label: 'Basic label',
}
};
export const AllCaps = {
args: {
label: 'All Caps label',
AllCaps: true,
}
};
export const Secondary = {
args: {
label: 'Secondary label',
color: 'text-secondary',
}
};
export const CustomColor = {
args: {
label: 'Custom color label',
fontColor: '#452166',
}
};
export const CustomBackgroundColor = {
args: {
size: 'h1',
label: 'Custom color label',
fontColor: '#ffffff',
backgroundColor: '#000000'
}
};