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
{{ message }}
This repository was archived by the owner on Sep 20, 2024. It is now read-only.
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,18 +2,18 @@ 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
## Import
15
15
16
-
Chakra UI Vue exports 4 Alertrelated components.
16
+
Chakra UI Vue exports four Alert-related components.
17
17
18
18
-`CAlert`: The wrapper for alert components.
19
19
-`CAlertIcon`: The visual icon for the alert that changes based on the `status` prop.
@@ -87,7 +87,7 @@ You can also use custom Alert icons by passing the name of the icon in the `name
87
87
88
88
### Variant
89
89
90
-
The `CAlert` component has 4 variant styles you can use. Pass the `variant` prop and use either
90
+
The `CAlert` component has four variant styles you can use. Pass the `variant` prop and use either
91
91
`subtle`, `solid`, `left-accent` or `top-accent`.
92
92
93
93
```vue live=true
@@ -113,8 +113,8 @@ The `CAlert` component has 4 variant styles you can use. Pass the `variant` prop
113
113
114
114
### Composition
115
115
116
-
`CAlert` ships with other smaller components to allow for flexibility and make it easy to
117
-
create all kinds of layout. Here's an example of a custom alert style and layout.
116
+
`CAlert` ships with other smaller components to allow for flexibility and make it possible to
117
+
create all kinds of layouts. Here's an example of a custom alert style and layout.
Copy file name to clipboardExpand all lines: website/pages/auto-import-components.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ import SEO from '../components/SEO'
9
9
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
10
10
you to directly consume Chakra UI Vue components without manually importing and globally registering all Chakra components.
11
11
12
-
This provides a better developer experience without sacrificing your applications bundle-size performance.
12
+
This provides a better developer experience without sacrificing your application's bundle-size performance.
13
13
14
14
15
15
## Installation
@@ -103,7 +103,7 @@ export default {
103
103
104
104
105
105
## How it works
106
-
`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.
106
+
`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.
107
107
108
108
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
+7-7Lines changed: 7 additions & 7 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
@@ -17,11 +17,11 @@ or products.
17
17
See `CBreadcrumb`'s [accessibility report](https://github.com/chakra-ui/chakra-ui-vue/blob/master/packages/chakra-ui-core/src/CBreadcrumb/accessibility.md)
18
18
19
19
## Import
20
-
Chakra UI exports 4 Breadcrumb related components:
20
+
Chakra UI exports four Breadcrumb related components:
21
21
22
22
-`CBreadcrumb`: The parent container for breadcrumbs.
23
23
-`CBreadcrumbItem`: Individual breadcrumb element containing a link and a divider.
24
-
-`CBreadcrumbLink`: The breadcrumb link, obviously.
24
+
-`CBreadcrumbLink`: The breadcrumb link.
25
25
-`CBreadcrumbSeparator`: The visual separator between each breadcrumb
26
26
27
27
<br />
@@ -84,7 +84,7 @@ on the `CBreadcrumb` to `false`, and manually add the `CBreadcrumbSeparator` as
84
84
`CBreadcrumbItem`.
85
85
86
86
You can then pass style props to change the styling of the `CBreadcrumbSeparator`. You can also override
87
-
the content of the `CBreadcrumbSeparator`by passing its default slot.
87
+
the content of the `CBreadcrumbSeparator`bypassing its default slot.
88
88
89
89
```vue live=true
90
90
<c-breadcrumb :add-separator="false">
@@ -131,7 +131,7 @@ breadcrumbs.
131
131
To use the `CBreadcrumb` with a routing Library like [Vue Router](https://router.vuejs.org),
132
132
all you need to do is to pass the `as` prop to the `CBreadcrumbLink` component.
133
133
134
-
It'll replace the rendered `a` tag with with `router-link` or `nuxt-link`.
134
+
It will replace the rendered `a` tag with `router-link` or `nuxt-link`.
135
135
136
136
```vue live=true
137
137
<c-breadcrumb separator="›">
@@ -152,7 +152,7 @@ It'll replace the rendered `a` tag with with `router-link` or `nuxt-link`.
152
152
- The `CBreadcrumb``nav` has `aria-label` set to `breadcrumb`.
153
153
- The `CBreadcrumbItem` with `isCurrentPage` prop adds the `aria-current=page` to
154
154
the `CBreadcrumbLink`.
155
-
- The separator has `role` set to `presentation` to denote that its for
155
+
- 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
@@ -85,7 +85,7 @@ You can add left and right icons to the Button component. See how to [add icons]
85
85
86
86
### Button loading state
87
87
88
-
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.
88
+
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.
89
89
90
90
```vue live=true
91
91
<c-button-group :spacing="4">
@@ -106,7 +106,7 @@ Pass `isLoading` prop to the Button component to show it's loading state. You ca
106
106
### Accessibility
107
107
108
108
-`CButton` has `role` button.
109
-
- When `CButton` has focus, `space` and `enter`activates it.
109
+
- When `CButton` has focus, `space` and `enter`activate it.
110
110
111
111
### Composition
112
112
@@ -123,7 +123,7 @@ Pass `isLoading` prop to the Button component to show it's loading state. You ca
123
123
124
124
### Custom Button
125
125
126
-
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.
126
+
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.
127
127
128
128
```vue live=true
129
129
<c-pseudo-box
@@ -147,7 +147,7 @@ In event you need to make your own custom button, you can leverage the `PseudoBo
147
147
148
148
## Props
149
149
150
-
The Button composes the `CPseudoBox` component so you can pass props for `CPseudoBox`. These are props related to the Button component.
150
+
The button composes the `CPseudoBox` component so you can pass props for `CPseudoBox`. These are props related to the Button component.
0 commit comments