-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Text): add strike through on text
- Loading branch information
1 parent
9fd969e
commit 5ef64ca
Showing
5 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@ultraviolet/ui": patch | ||
--- | ||
|
||
Add `strikethrough` prop on `<Text />` component |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
packages/plus/src/components/EstimateCost/__stories__/NewPrice.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import type { StoryFn } from '@storybook/react' | ||
import { Stack } from '@ultraviolet/ui' | ||
import type { ComponentProps } from 'react' | ||
import { EstimateCost } from '..' | ||
|
||
export const NewPrice: StoryFn<ComponentProps<typeof EstimateCost>> = props => ( | ||
<Stack gap={4}> | ||
<EstimateCost {...props} hideOverlay> | ||
<EstimateCost.Item label="New server" price={20} noBorder /> | ||
</EstimateCost> | ||
|
||
<EstimateCost | ||
{...props} | ||
hideOverlay | ||
hideTotal | ||
description={false} | ||
hideTimeUnit | ||
> | ||
<EstimateCost.Item strikeThrough label="Old server" price={10} noBorder /> | ||
</EstimateCost> | ||
</Stack> | ||
) | ||
|
||
NewPrice.parameters = { | ||
docs: { | ||
description: { | ||
story: '', | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters