Skip to content

Commit

Permalink
feat: add new property shape and size
Browse files Browse the repository at this point in the history
  • Loading branch information
anabrook committed Feb 25, 2025
1 parent 5c49ce5 commit cc99782
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions packages/core/src/components/badge/stories/badge.react.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { AtomBadge } from '@juntossomosmais/atomium/react'
import { Meta, StoryObj } from '@storybook/react'
import React from 'react'

import { BadgeStoryArgs } from './badge.args'
import { BadgeComponentArgs, BadgeStoryArgs } from './badge.args'

export default {
title: 'Components/Badge',
Expand All @@ -11,14 +11,20 @@ export default {
} as Meta

const createBadge = (args) => (
<AtomBadge color={args.color}>{args.label}</AtomBadge>
<AtomBadge
color={args.color}
shape={args.shape}
size={args.size}
type={args.type}
>
{args.label}
</AtomBadge>
)

export const Primary: StoryObj = {
render: (args) => createBadge(args),
args: {
type: 'primary',
label: 'Badge',
...BadgeComponentArgs,
},
}

Expand Down Expand Up @@ -77,3 +83,13 @@ export const Info: StoryObj = {
type: 'info',
},
}

export const RectangleButton: StoryObj = {
render: (args) => createBadge(args),
args: {
...Primary.args,
color: 'secondary',
size: 'default',
shape: 'rectangle',
},
}

0 comments on commit cc99782

Please sign in to comment.