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: website/pages/alert.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,20 +2,20 @@ import SEO from '../components/SEO'
2
2
3
3
<SEO
4
4
title="Alert"
5
-
description="Alerts are used to communicate a state that affects a system, feature or page."
5
+
description="Alerts are used to communicate a state that affects a system, feature, or page."
6
6
/>
7
7
8
8
# Alert
9
9
10
-
Alerts are used to communicate a state that affects a system, feature or page.
10
+
Alerts are used to communicate a state that affects a system, feature, or page.
11
11
12
12
See `CAlert`'s <ahref="https://github.com/chakra-ui/chakra-ui-vue/blob/master/packages/chakra-ui-core/src/CAlert/accessibility.md">accessibility report</a>
13
13
14
14
<carbon-ad />
15
15
16
16
## Import
17
17
18
-
Chakra UI Vue exports 4 Alertrelated components.
18
+
Chakra UI Vue exports four Alert-related components.
19
19
20
20
-`CAlert`: The wrapper for alert components.
21
21
-`CAlertIcon`: The visual icon for the alert that changes based on the `status` prop.
@@ -89,7 +89,7 @@ You can also use custom Alert icons by passing the name of the icon in the `name
89
89
90
90
### Variant
91
91
92
-
The `CAlert` component has 4 variant styles you can use. Pass the `variant` prop and use either
92
+
The `CAlert` component has four variant styles you can use. Pass the `variant` prop and use either
93
93
`subtle`, `solid`, `left-accent` or `top-accent`.
94
94
95
95
```vue live=true
@@ -115,8 +115,8 @@ The `CAlert` component has 4 variant styles you can use. Pass the `variant` prop
115
115
116
116
### Composition
117
117
118
-
`CAlert` ships with other smaller components to allow for flexibility and make it easy to
119
-
create all kinds of layout. Here's an example of a custom alert style and layout.
118
+
`CAlert` ships with other smaller components to allow for flexibility and make it possible to
119
+
create all kinds of layouts. Here's an example of a custom alert style and layout.
We know that it can be cumbersome to import every single Chakra component you want to use in your Vue templates. Chakra UI offers webpack plugin solution that allows
11
11
you to directly consume Chakra UI Vue components without manually importing and globally registering all Chakra components.
12
12
13
-
This provides a better developer experience without sacrificing your applications bundle-size performance.
13
+
This provides a better developer experience without sacrificing your application's bundle-size performance.
14
14
15
15
<carbon-ad />
16
16
@@ -104,7 +104,7 @@ export default {
104
104
105
105
106
106
## How it works
107
-
`ChakraLoaderPlugin` will analyse your SFC template at during development and at build time, and scan it for all Chakra UI Vue components that you consume in it. The loader will then proceed to automatically import those components and register them while preserving treeshaking.
107
+
`ChakraLoaderPlugin` will analyse your SFC template during development and at build time, and scan it for all Chakra UI Vue components that you consume in it. The loader will then proceed to automatically import those components and register them while preserving treeshaking.
108
108
109
109
For example, consider the component below, `Component.vue` which uses Chakra's `CBox` and `CButton` components.
Copy file name to clipboardExpand all lines: website/pages/breadcrumb.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,13 @@ import SEO from '../components/SEO'
2
2
3
3
<SEO
4
4
title="Breadcrumb"
5
-
description="Breadcrumbs, or a breadcrumb navigation, can help to enhance how users navigate to previous page levels of a website, especially if that website has many pages or products."
5
+
description="Breadcrumbs, or breadcrumb navigation, can help to enhance how users navigate to previous page levels of a website, especially if that website has many pages or products."
6
6
/>
7
7
8
8
9
9
# Breadcrumb
10
10
11
-
Breadcrumbs, or a breadcrumb navigation, can help to enhance how users navigate
11
+
Breadcrumbs, or breadcrumb navigation, can help to enhance how users navigate
12
12
to previous page levels of a website, especially if that website has many pages
13
13
or products.
14
14
@@ -19,11 +19,11 @@ See `CBreadcrumb`'s [accessibility report](https://github.com/chakra-ui/chakra-u
19
19
<carbon-ad />
20
20
21
21
## Import
22
-
Chakra UI exports 4 Breadcrumb related components:
22
+
Chakra UI exports four Breadcrumb related components:
23
23
24
24
-`CBreadcrumb`: The parent container for breadcrumbs.
25
25
-`CBreadcrumbItem`: Individual breadcrumb element containing a link and a divider.
26
-
-`CBreadcrumbLink`: The breadcrumb link, obviously.
26
+
-`CBreadcrumbLink`: The breadcrumb link.
27
27
-`CBreadcrumbSeparator`: The visual separator between each breadcrumb
28
28
29
29
<br />
@@ -133,7 +133,7 @@ breadcrumbs.
133
133
To use the `CBreadcrumb` with a routing Library like [Vue Router](https://router.vuejs.org),
134
134
all you need to do is to pass the `as` prop to the `CBreadcrumbLink` component.
135
135
136
-
It'll replace the rendered `a` tag with with `router-link` or `nuxt-link`.
136
+
It will replace the rendered `a` tag with `router-link` or `nuxt-link`.
137
137
138
138
```vue live=true
139
139
<c-breadcrumb separator="›">
@@ -154,7 +154,7 @@ It'll replace the rendered `a` tag with with `router-link` or `nuxt-link`.
154
154
- The `CBreadcrumb``nav` has `aria-label` set to `breadcrumb`.
155
155
- The `CBreadcrumbItem` with `isCurrentPage` prop adds the `aria-current=page` to
156
156
the `CBreadcrumbLink`.
157
-
- The separator has `role` set to `presentation` to denote that its for
157
+
- The separator has `role` set to `presentation` to denote that it's for
Copy file name to clipboardExpand all lines: website/pages/button.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,7 @@ You can add left and right icons to the Button component. See how to [add icons]
87
87
88
88
### Button loading state
89
89
90
-
Pass `isLoading` prop to the Button component to show it's loading state. You can optionally pass `loadingText` prop, if you do, the button will show a spinner and the loading text. Otherwise, the button will take the width of the text label and show only the spinner.
90
+
Pass `isLoading` prop to the Button component to show its loading state. You can optionally pass `loadingText` prop, if you do, the button will show a spinner and the loading text. Otherwise, the button will take the width of the text label and show only the spinner.
91
91
92
92
```vue live=true
93
93
<c-button-group :spacing="4">
@@ -108,7 +108,7 @@ Pass `isLoading` prop to the Button component to show it's loading state. You ca
108
108
### Accessibility
109
109
110
110
-`CButton` has `role` button.
111
-
- When `CButton` has focus, `space` and `enter`activates it.
111
+
- When `CButton` has focus, `space` and `enter`activate it.
112
112
113
113
### Composition
114
114
@@ -125,7 +125,7 @@ Pass `isLoading` prop to the Button component to show it's loading state. You ca
125
125
126
126
### Custom Button
127
127
128
-
In event you need to make your own custom button, you can leverage the `PseudoBox` component. It provides the `hover`, `focus`, `active` and `disabled` style props to style the button.
128
+
In the event you need to make your own custom button, you can leverage the `PseudoBox` component. It provides the `hover`, `focus`, `active` and `disabled` style props to style the button.
129
129
130
130
```vue live=true
131
131
<c-pseudo-box
@@ -149,7 +149,7 @@ In event you need to make your own custom button, you can leverage the `PseudoBo
149
149
150
150
## Props
151
151
152
-
The Button composes the `CPseudoBox` component so you can pass props for `CPseudoBox`. These are props related to the Button component.
152
+
The button composes the `CPseudoBox` component so you can pass props for `CPseudoBox`. These are props related to the Button component.
0 commit comments