mirror of
https://github.com/portainer/portainer.git
synced 2025-08-05 05:45:22 +02:00
fix(helm): helm charts view bad icon aspect ratio EE-4451 (#7875)
This commit is contained in:
parent
1100a2bd28
commit
368e6b2a44
17 changed files with 104 additions and 81 deletions
35
app/react/components/BadgeIcon/Badge.stories.tsx
Normal file
35
app/react/components/BadgeIcon/Badge.stories.tsx
Normal file
|
@ -0,0 +1,35 @@
|
|||
import { Meta } from '@storybook/react';
|
||||
|
||||
import { BadgeIcon, BadgeSize, Props } from './BadgeIcon';
|
||||
|
||||
export default {
|
||||
component: BadgeIcon,
|
||||
title: 'Components/BadgeIcon',
|
||||
argTypes: {
|
||||
size: {
|
||||
control: {
|
||||
type: 'select',
|
||||
options: ['md', 'lg', 'xl', '2xl', '3xl'],
|
||||
},
|
||||
},
|
||||
icon: {
|
||||
control: {
|
||||
type: 'select',
|
||||
options: ['edit', 'info', 'smile', 'users'],
|
||||
},
|
||||
},
|
||||
},
|
||||
} as Meta<Props>;
|
||||
|
||||
// : JSX.IntrinsicAttributes & PropsWithChildren<Props>
|
||||
function Template({
|
||||
size = '3xl',
|
||||
icon = 'edit',
|
||||
}: {
|
||||
size?: BadgeSize;
|
||||
icon: string;
|
||||
}) {
|
||||
return <BadgeIcon icon={icon} size={size} featherIcon />;
|
||||
}
|
||||
|
||||
export const Example = Template.bind({});
|
Loading…
Add table
Add a link
Reference in a new issue