sr-custom-components
Version:
46 lines (45 loc) • 903 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: 'AllCaps label',
allCaps: true
}
};
export const Secondary = {
args: {
label: 'Secondary label',
color: 'text-secondary'
}
};
export const CustomColor = {
args: {
label: 'CustomColor label',
fontColor: 'blue'
}
};
export const CustomBackgroundColor = {
args: {
size: 'h1',
label: 'CustomColor label',
fontColor: 'white',
backgroundColor: 'black'
}
};