Skip to content

Commit 097eb71

Browse files
author
KB Bot
committed
Added new kb article wizard-text-wrapping
1 parent 3601745 commit 097eb71

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
title: Wizard Text Wrapping
3+
description: This article demonstrates how to allow text wrapping for step labels in the Telerik UI for Blazor Wizard component to ensure full text visibility.
4+
type: how-to
5+
page_title: How to Enable Text Wrapping in Wizard Step Labels - Telerik UI for Blazor
6+
slug: wizard-text-wrapping
7+
tags: css, blazor, wizard, text, wrap, ui, telerik
8+
res_type: kb
9+
ticketid: 1671064
10+
---
11+
12+
## Environment
13+
14+
<table>
15+
<tbody>
16+
<tr>
17+
<td>Product</td>
18+
<td>Wizard for Blazor</td>
19+
</tr>
20+
</tbody>
21+
</table>
22+
23+
## Description
24+
25+
I am wondering if there's a way to allow the `TelerikWizard` to show the full text. For instance, step labels in my Wizard component are getting cut off, and I wish to display the complete text by wrapping it onto the next line.
26+
27+
## Solution
28+
29+
To ensure that the text within the wizard steps wraps properly and the full text is displayed, apply the following CSS styles.
30+
31+
>caption These styles allow the text to wrap within the wizard steps and break words if necessary to fit the content within the available space.
32+
33+
````RAZOR
34+
<style>
35+
.k-wizard .k-step .k-step-text {
36+
white-space: normal; /* Allow text to wrap */
37+
word-wrap: break-word; /* Break words if necessary */
38+
}
39+
</style>
40+
41+
<TelerikWizard @bind-Value="@WizardValue">
42+
<WizardSteps>
43+
<WizardStep Label="Start Start Start Start Start" Icon="@SvgIcon.Gear">
44+
<Content>
45+
<p>Welcome to the Wizard!</p>
46+
</Content>
47+
</WizardStep>
48+
<WizardStep Label="Survey Survey Survey Survey Survey" Icon="@SvgIcon.Pencil">
49+
<Content>
50+
<p>The user is performing some actions...</p>
51+
</Content>
52+
</WizardStep>
53+
<WizardStep Label="Finish" Icon="SvgIcon.Check">
54+
<Content>
55+
<p>Thank you!</p>
56+
</Content>
57+
</WizardStep>
58+
</WizardSteps>
59+
</TelerikWizard>
60+
61+
<p><strong>Wizard Value: @WizardValue</strong></p>
62+
63+
@code {
64+
private int WizardValue { get; set; }
65+
}
66+
````
67+
68+
## See Also
69+
70+
- [Wizard Overview](https://docs.telerik.com/blazor-ui/components/wizard/overview)
71+
- [Override the Theme or Apply Custom CSS Styles]({%slug themes-override%})

0 commit comments

Comments
 (0)