Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Progress): change prop text #1993

Merged
merged 3 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/Progress/ProgressInnerText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import {progressBlock} from './constants';

export interface ProgressInnerTextProps {
text?: string;
text?: React.ReactNode;
offset?: number;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/Progress/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ LANDING_BLOCK-->
| size | Sets the progress bar size. The progress bar text can only be displayed in `"m"` size. | `string` | `"m"` |
| stack | Configuration of composite progress bar. Not required if a `value` is provided. | `Array<Stack>` | |
| stackClassName | HTML `class` attribute of stack | `string` | |
| text | Text inside the progress bar | `string` | |
| text | Text inside the progress bar | `ReactNode` | |
| theme | Sets progress color | `string` | `"default"` |
| value | Current progress value. The available range is from 0 to 100. Using the `stack` property value is optional and is used as maxValue. | `number` | |

Expand Down
2 changes: 1 addition & 1 deletion src/components/Progress/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ interface ProgressGeneralProps extends QAProps {

export interface ProgressDefaultProps {
/** Text inside progress bar */
text: string;
text: React.ReactNode;
/** Theme */
theme: ProgressTheme;
/** Size. Text of progress bar is displayed in `m` size only. */
Expand Down
Loading