You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/docs/docs/components/feedback/Banner/_mobileExamples.mdx
+43-4Lines changed: 43 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
The global warning banner is used to communicate important alerts or warnings to users across the entire platform, ensuring universal visibility and building trust.
4
4
5
-
```jsx live
5
+
```tsx
6
6
<Banner
7
7
showDismiss
8
8
startIcon="warning"
@@ -24,7 +24,7 @@ The global warning banner is used to communicate important alerts or warnings to
24
24
25
25
The In-line Error Banner is used to display specific error messages directly beneath the relevant section headers. Use in-line banners to help users identify exactly where the error or outage is located.
26
26
27
-
```jsx live
27
+
```tsx
28
28
<Banner
29
29
startIcon="info"
30
30
startIconActive
@@ -45,7 +45,7 @@ The In-line Error Banner is used to display specific error messages directly ben
45
45
46
46
The Contextual Promotional Banner is used to highlight special offers, promotions, or announcements within a specific context or section of the platform. It is used to increase user engagement and drive conversions.
47
47
48
-
```jsx live
48
+
```tsx
49
49
<Banner
50
50
startIcon="info"
51
51
startIconActive
@@ -64,7 +64,7 @@ The Contextual Promotional Banner is used to highlight special offers, promotion
64
64
65
65
The in-line Informational Banner is used to provide users with additional information or helpful tips directly within the content or interface, providing relevant guidance.
66
66
67
-
```jsx live
67
+
```tsx
68
68
<VStackgap={2}>
69
69
<Banner
70
70
startIcon="info"
@@ -93,3 +93,42 @@ The in-line Informational Banner is used to provide users with additional inform
93
93
</Banner>
94
94
</VStack>
95
95
```
96
+
97
+
### Rounded Corner Banners
98
+
99
+
Customize `borderRadius` to align contextual or in-line banners with surrounding surfaces.
100
+
101
+
```tsx
102
+
<VStackgap={2}>
103
+
<Banner
104
+
borderRadius={200}
105
+
startIcon="info"
106
+
startIconActive
107
+
styleVariant="contextual"
108
+
title="Rounded contextual banner"
109
+
variant="informational"
110
+
>
111
+
<TextLabel2>
112
+
Use moderate rounding to soften banners that live within card-based layouts.
Copy file name to clipboardExpand all lines: apps/docs/docs/components/feedback/Banner/_webExamples.mdx
+43-4Lines changed: 43 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
The global warning banner is used to communicate important alerts or warnings to users across the entire platform, ensuring universal visibility and building trust.
4
4
5
-
```jsx live
5
+
```tsx live
6
6
<Banner
7
7
showDismiss
8
8
label="Message last updated today at 3:33pm"
@@ -25,7 +25,7 @@ The global warning banner is used to communicate important alerts or warnings to
25
25
26
26
The In-line Error Banner is used to display specific error messages directly beneath the relevant section headers. Use in-line banners to help users identify exactly where the error or outage is located.
27
27
28
-
```jsx live
28
+
```tsx live
29
29
<Banner
30
30
startIcon="info"
31
31
startIconActive
@@ -46,7 +46,7 @@ The In-line Error Banner is used to display specific error messages directly ben
46
46
47
47
The Contextual Promotional Banner is used to highlight special offers, promotions, or announcements within a specific context or section of the platform. It is used to increase user engagement and drive conversions.
48
48
49
-
```jsx live
49
+
```tsx live
50
50
<Banner
51
51
startIcon="info"
52
52
startIconActive
@@ -65,7 +65,7 @@ The Contextual Promotional Banner is used to highlight special offers, promotion
65
65
66
66
The in-line Informational Banner is used to provide users with additional information or helpful tips directly within the content or interface, providing relevant guidance.
67
67
68
-
```jsx live
68
+
```tsx live
69
69
<VStackgap={2}>
70
70
<Banner
71
71
startIcon="info"
@@ -94,3 +94,42 @@ The in-line Informational Banner is used to provide users with additional inform
94
94
</Banner>
95
95
</VStack>
96
96
```
97
+
98
+
### Rounded Corner Banners
99
+
100
+
You can customize `borderRadius` to soften contextual and in-line banners.
101
+
102
+
```tsx live
103
+
<VStackgap={2}>
104
+
<Banner
105
+
borderRadius={200}
106
+
startIcon="info"
107
+
startIconActive
108
+
styleVariant="contextual"
109
+
title="Rounded contextual banner"
110
+
variant="informational"
111
+
>
112
+
<TextLabel2as="p">
113
+
Rounded corners help align with softer surface treatments within a page section.
0 commit comments