webcoreui 0.4.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +237 -227
- package/astro.d.ts +115 -62
- package/astro.js +14 -0
- package/components/Avatar/Avatar.astro +9 -2
- package/components/Avatar/Avatar.svelte +3 -1
- package/components/Avatar/Avatar.tsx +4 -2
- package/components/Avatar/avatar.ts +1 -0
- package/components/Badge/Badge.astro +4 -0
- package/components/Badge/Badge.svelte +5 -1
- package/components/Badge/Badge.tsx +4 -0
- package/components/Badge/badge.module.scss +8 -0
- package/components/Badge/badge.ts +7 -3
- package/components/Breadcrumb/Breadcrumb.astro +51 -0
- package/components/Breadcrumb/Breadcrumb.svelte +45 -0
- package/components/Breadcrumb/Breadcrumb.tsx +51 -0
- package/components/Breadcrumb/breadcrumb.module.scss +26 -0
- package/components/Breadcrumb/breadcrumb.ts +12 -0
- package/components/Button/button.module.scss +6 -1
- package/components/Button/button.ts +13 -3
- package/components/Carousel/Carousel.astro +198 -0
- package/components/Carousel/Carousel.svelte +161 -0
- package/components/Carousel/Carousel.tsx +172 -0
- package/components/Carousel/carousel.module.scss +58 -0
- package/components/Carousel/carousel.ts +26 -0
- package/components/Checkbox/checkbox.ts +4 -2
- package/components/DataTable/DataTable.astro +332 -0
- package/components/DataTable/DataTable.svelte +272 -0
- package/components/DataTable/DataTable.tsx +287 -0
- package/components/DataTable/datatable.module.scss +102 -0
- package/components/DataTable/datatable.ts +41 -0
- package/components/Footer/Footer.astro +91 -0
- package/components/Footer/Footer.svelte +94 -0
- package/components/Footer/Footer.tsx +107 -0
- package/components/Footer/footer.module.scss +61 -0
- package/components/Footer/footer.ts +29 -0
- package/components/Icon/Icon.svelte +1 -1
- package/components/Icon/icon.ts +18 -1
- package/components/Icon/map.ts +14 -0
- package/components/Input/input.module.scss +6 -0
- package/components/List/List.astro +1 -1
- package/components/List/List.svelte +1 -1
- package/components/List/List.tsx +1 -2
- package/components/List/list.ts +3 -1
- package/components/Masonry/Masonry.astro +54 -0
- package/components/Masonry/Masonry.svelte +54 -0
- package/components/Masonry/Masonry.tsx +62 -0
- package/components/Masonry/masonry.module.scss +18 -0
- package/components/Masonry/masonry.ts +36 -0
- package/components/Menu/Menu.astro +1 -1
- package/components/Menu/Menu.svelte +1 -1
- package/components/Menu/Menu.tsx +1 -1
- package/components/Menu/menu.ts +4 -2
- package/components/Modal/Modal.astro +2 -0
- package/components/Modal/Modal.svelte +2 -0
- package/components/Modal/Modal.tsx +2 -0
- package/components/Modal/modal.module.scss +29 -22
- package/components/Modal/modal.ts +1 -0
- package/components/Pagination/Pagination.astro +189 -0
- package/components/Pagination/Pagination.svelte +144 -0
- package/components/Pagination/Pagination.tsx +162 -0
- package/components/Pagination/pagination.module.scss +49 -0
- package/components/Pagination/pagination.ts +35 -0
- package/components/Rating/rating.ts +3 -1
- package/components/Select/Select.astro +8 -4
- package/components/Select/Select.svelte +15 -6
- package/components/Select/Select.tsx +15 -8
- package/components/Select/select.ts +7 -2
- package/components/Sidebar/Sidebar.astro +61 -0
- package/components/Sidebar/Sidebar.svelte +50 -0
- package/components/Sidebar/Sidebar.tsx +58 -0
- package/components/Sidebar/sidebar.module.scss +43 -0
- package/components/Sidebar/sidebar.ts +21 -0
- package/components/Switch/switch.ts +4 -2
- package/components/Table/Table.svelte +1 -1
- package/components/Table/table.ts +1 -1
- package/icons/arrow-left.svg +3 -0
- package/icons/arrow-right.svg +3 -0
- package/icons/circle-close.svg +3 -0
- package/icons/components.svg +3 -0
- package/icons/file.svg +3 -0
- package/icons/home.svg +4 -0
- package/icons/order.svg +3 -0
- package/icons/sun.svg +1 -1
- package/icons.d.ts +7 -0
- package/icons.js +7 -0
- package/index.d.ts +6 -6
- package/package.json +8 -10
- package/react.d.ts +115 -62
- package/react.js +14 -0
- package/scss/resets.scss +27 -1
- package/svelte.d.ts +116 -62
- package/svelte.js +14 -0
package/README.md
CHANGED
|
@@ -1,227 +1,237 @@
|
|
|
1
|
-
<p>
|
|
2
|
-
<a href="https://webcoreui.dev">
|
|
3
|
-
<img
|
|
4
|
-
alt="Webcore - Frontend components for Astro, Svelte, and React"
|
|
5
|
-
src="https://raw.githubusercontent.com/Frontendland/webcoreui/main/public/img/banner.png"
|
|
6
|
-
/>
|
|
7
|
-
</a>
|
|
8
|
-
</p>
|
|
9
|
-
|
|
10
|
-
<p align="center">
|
|
11
|
-
<a href="https://github.com/Frontendland/webcoreui/releases">
|
|
12
|
-
<img
|
|
13
|
-
src="https://img.shields.io/npm/v/webcoreui.svg?label=Latest%20Release"
|
|
14
|
-
alt="Latest Release"
|
|
15
|
-
/>
|
|
16
|
-
</a>
|
|
17
|
-
<a href="https://github.com/Frontendland/webcoreui/blob/main/LICENSE">
|
|
18
|
-
<img
|
|
19
|
-
src="https://img.shields.io/badge/license-MIT-blue"
|
|
20
|
-
alt="License"
|
|
21
|
-
/>
|
|
22
|
-
</a>
|
|
23
|
-
</p>
|
|
24
|
-
|
|
25
|
-
> [!IMPORTANT]
|
|
26
|
-
> This library is still in early development. New changes can break existing functionality, and no functionality should be considered final at this stage. The library will be considered stable once it reaches v1.0.
|
|
27
|
-
|
|
28
|
-
---
|
|
29
|
-
## Table of Contents
|
|
30
|
-
|
|
31
|
-
- [Table of Contents](#table-of-contents)
|
|
32
|
-
- [Documentation](#documentation)
|
|
33
|
-
- [Getting started](#getting-started)
|
|
34
|
-
- [Prerequisites](#prerequisites)
|
|
35
|
-
- [Installation](#installation)
|
|
36
|
-
- [Setup](#setup)
|
|
37
|
-
- [Using Components](#using-components)
|
|
38
|
-
- [Components](#components)
|
|
39
|
-
|
|
40
|
-
## Documentation
|
|
41
|
-
|
|
42
|
-
Full documentation available on [webcoreui.dev](https://webcoreui.dev).
|
|
43
|
-
|
|
44
|
-
## Getting Started
|
|
45
|
-
|
|
46
|
-
Webcore can be used as a standalone project, or it can be integrated into your existing Astro, Svelte, or React ecosystems. The easiest way to get started is to clone the repository and run `npm run dev` to start building your pages with the components available.
|
|
47
|
-
|
|
48
|
-
### Prerequisites
|
|
49
|
-
|
|
50
|
-
> [!NOTE]
|
|
51
|
-
> Before getting started, make sure you have a package manager installed, such as <a href="https://nodejs.org/en/" rel="noreferrer">Node</a>.
|
|
52
|
-
|
|
53
|
-
Webcore components use Sass for styling. To use the component library, you must have the following packages installed:
|
|
54
|
-
|
|
55
|
-
- [Sass](https://www.npmjs.com/package/sass) - `v1.77` and above
|
|
56
|
-
- [TypeScript](https://www.npmjs.com/package/typescript) - `v5.4` and above
|
|
57
|
-
|
|
58
|
-
Depending on your project setup, you'll also need the following packages:
|
|
59
|
-
|
|
60
|
-
- **For Astro projects**
|
|
61
|
-
- [Astro](https://www.npmjs.com/package/astro) - `v4.10` and above
|
|
62
|
-
- **For Svelte projects**
|
|
63
|
-
- [Svelte](https://www.npmjs.com/package/svelte) - `v4.2` and above
|
|
64
|
-
- **For React projects**
|
|
65
|
-
- [React](https://www.npmjs.com/package/react) - `v18.3` and above
|
|
66
|
-
- [React DOM](https://www.npmjs.com/package/react-dom) -`v18.3` and above
|
|
67
|
-
|
|
68
|
-
### Installation
|
|
69
|
-
|
|
70
|
-
Install Webcore as a dependency by running one of the following command:
|
|
71
|
-
|
|
72
|
-
```bash
|
|
73
|
-
# Using NPM
|
|
74
|
-
npm i webcoreui
|
|
75
|
-
|
|
76
|
-
# Using Yarn
|
|
77
|
-
yarn add webcoreui
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
### Setup
|
|
81
|
-
|
|
82
|
-
Create an empty [`webcore.config.scss`](https://webcoreui.dev/docs/css-configuration#webcoreconfigscss) file at the root of your project to setup CSS configurations. Setup default styles and fonts by calling the following in your global SCSS file:
|
|
83
|
-
|
|
84
|
-
```scss
|
|
85
|
-
@import 'webcoreui/styles';
|
|
86
|
-
@include setup((
|
|
87
|
-
// Define paths for your fonts
|
|
88
|
-
fontRegular: '/fonts/Inter-Regular.woff2',
|
|
89
|
-
fontBold: '/fonts/Inter-Bold.woff2'
|
|
90
|
-
));
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
> [!TIP]
|
|
94
|
-
> You can download the fonts Webcore uses from the [`public/fonts`](https://github.com/Frontendland/webcoreui/tree/main/public/fonts) directory.
|
|
95
|
-
|
|
96
|
-
The `Setup` mixin can also accept the following options:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
| Property | Default value | Purpose |
|
|
100
|
-
|-----------|---------------|---------|
|
|
101
|
-
| `includeResets` | `true` | Include reset styles. Set to `false` if you want to use your own CSS resets. |
|
|
102
|
-
| `includeUtilities` | `true` | Adds utility classes for CSS. Read more about the available utility classes [here](https://webcoreui.dev/docs/layout). |
|
|
103
|
-
| `includeTooltip` | `true` | Adds styles for using tooltips.
|
|
104
|
-
| `includeScrollbarStyles` | `true` | Adds styles for scrollbars.
|
|
105
|
-
|
|
106
|
-
Default component styles can be changed by overriding the following CSS variables:
|
|
107
|
-
|
|
108
|
-
```scss
|
|
109
|
-
html body {
|
|
110
|
-
// Avatar component
|
|
111
|
-
--w-avatar-border: var(--w-color-primary-70);
|
|
112
|
-
|
|
113
|
-
// Checkbox component
|
|
114
|
-
--w-checkbox-color: var(--w-color-primary);
|
|
115
|
-
|
|
116
|
-
// Collapsible component
|
|
117
|
-
--w-collapsible-initial-height: 0;
|
|
118
|
-
--w-collapsible-max-height: 100%;
|
|
119
|
-
|
|
120
|
-
//
|
|
121
|
-
--w-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
--w-progress-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
--w-
|
|
128
|
-
|
|
129
|
-
//
|
|
130
|
-
--w-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
--w-rating-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
--w-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
--w-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
--w-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
--w-spinner-
|
|
149
|
-
--w-spinner-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
--w-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
--w-
|
|
157
|
-
|
|
158
|
-
//
|
|
159
|
-
--w-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
--w-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
--w-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
--w-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
// How to import
|
|
186
|
-
import { Accordion } from 'webcoreui/
|
|
187
|
-
|
|
188
|
-
// How to import
|
|
189
|
-
import { Accordion } from 'webcoreui/
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
- [
|
|
201
|
-
- [
|
|
202
|
-
- [
|
|
203
|
-
- [
|
|
204
|
-
- [
|
|
205
|
-
- [
|
|
206
|
-
- [
|
|
207
|
-
- [
|
|
208
|
-
- [
|
|
209
|
-
- [
|
|
210
|
-
- [
|
|
211
|
-
- [
|
|
212
|
-
- [
|
|
213
|
-
- [
|
|
214
|
-
- [
|
|
215
|
-
- [
|
|
216
|
-
- [
|
|
217
|
-
- [
|
|
218
|
-
- [
|
|
219
|
-
- [
|
|
220
|
-
- [
|
|
221
|
-
- [
|
|
222
|
-
- [
|
|
223
|
-
- [
|
|
224
|
-
- [
|
|
225
|
-
- [
|
|
226
|
-
- [
|
|
227
|
-
- [
|
|
1
|
+
<p>
|
|
2
|
+
<a href="https://webcoreui.dev">
|
|
3
|
+
<img
|
|
4
|
+
alt="Webcore - Frontend components for Astro, Svelte, and React"
|
|
5
|
+
src="https://raw.githubusercontent.com/Frontendland/webcoreui/main/public/img/banner.png"
|
|
6
|
+
/>
|
|
7
|
+
</a>
|
|
8
|
+
</p>
|
|
9
|
+
|
|
10
|
+
<p align="center">
|
|
11
|
+
<a href="https://github.com/Frontendland/webcoreui/releases">
|
|
12
|
+
<img
|
|
13
|
+
src="https://img.shields.io/npm/v/webcoreui.svg?label=Latest%20Release"
|
|
14
|
+
alt="Latest Release"
|
|
15
|
+
/>
|
|
16
|
+
</a>
|
|
17
|
+
<a href="https://github.com/Frontendland/webcoreui/blob/main/LICENSE">
|
|
18
|
+
<img
|
|
19
|
+
src="https://img.shields.io/badge/license-MIT-blue"
|
|
20
|
+
alt="License"
|
|
21
|
+
/>
|
|
22
|
+
</a>
|
|
23
|
+
</p>
|
|
24
|
+
|
|
25
|
+
> [!IMPORTANT]
|
|
26
|
+
> This library is still in early development. New changes can break existing functionality, and no functionality should be considered final at this stage. The library will be considered stable once it reaches v1.0.
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
## Table of Contents
|
|
30
|
+
|
|
31
|
+
- [Table of Contents](#table-of-contents)
|
|
32
|
+
- [Documentation](#documentation)
|
|
33
|
+
- [Getting started](#getting-started)
|
|
34
|
+
- [Prerequisites](#prerequisites)
|
|
35
|
+
- [Installation](#installation)
|
|
36
|
+
- [Setup](#setup)
|
|
37
|
+
- [Using Components](#using-components)
|
|
38
|
+
- [Components](#components)
|
|
39
|
+
|
|
40
|
+
## Documentation
|
|
41
|
+
|
|
42
|
+
Full documentation available on [webcoreui.dev](https://webcoreui.dev).
|
|
43
|
+
|
|
44
|
+
## Getting Started
|
|
45
|
+
|
|
46
|
+
Webcore can be used as a standalone project, or it can be integrated into your existing Astro, Svelte, or React ecosystems. The easiest way to get started is to clone the repository and run `npm run dev` to start building your pages with the components available.
|
|
47
|
+
|
|
48
|
+
### Prerequisites
|
|
49
|
+
|
|
50
|
+
> [!NOTE]
|
|
51
|
+
> Before getting started, make sure you have a package manager installed, such as <a href="https://nodejs.org/en/" rel="noreferrer">Node</a>.
|
|
52
|
+
|
|
53
|
+
Webcore components use Sass for styling. To use the component library, you must have the following packages installed:
|
|
54
|
+
|
|
55
|
+
- [Sass](https://www.npmjs.com/package/sass) - `v1.77` and above
|
|
56
|
+
- [TypeScript](https://www.npmjs.com/package/typescript) - `v5.4` and above
|
|
57
|
+
|
|
58
|
+
Depending on your project setup, you'll also need the following packages:
|
|
59
|
+
|
|
60
|
+
- **For Astro projects**
|
|
61
|
+
- [Astro](https://www.npmjs.com/package/astro) - `v4.10` and above
|
|
62
|
+
- **For Svelte projects**
|
|
63
|
+
- [Svelte](https://www.npmjs.com/package/svelte) - `v4.2` and above
|
|
64
|
+
- **For React projects**
|
|
65
|
+
- [React](https://www.npmjs.com/package/react) - `v18.3` and above
|
|
66
|
+
- [React DOM](https://www.npmjs.com/package/react-dom) -`v18.3` and above
|
|
67
|
+
|
|
68
|
+
### Installation
|
|
69
|
+
|
|
70
|
+
Install Webcore as a dependency by running one of the following command:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
# Using NPM
|
|
74
|
+
npm i webcoreui
|
|
75
|
+
|
|
76
|
+
# Using Yarn
|
|
77
|
+
yarn add webcoreui
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Setup
|
|
81
|
+
|
|
82
|
+
Create an empty [`webcore.config.scss`](https://webcoreui.dev/docs/css-configuration#webcoreconfigscss) file at the root of your project to setup CSS configurations. Setup default styles and fonts by calling the following in your global SCSS file:
|
|
83
|
+
|
|
84
|
+
```scss
|
|
85
|
+
@import 'webcoreui/styles';
|
|
86
|
+
@include setup((
|
|
87
|
+
// Define paths for your fonts
|
|
88
|
+
fontRegular: '/fonts/Inter-Regular.woff2',
|
|
89
|
+
fontBold: '/fonts/Inter-Bold.woff2'
|
|
90
|
+
));
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
> [!TIP]
|
|
94
|
+
> You can download the fonts Webcore uses from the [`public/fonts`](https://github.com/Frontendland/webcoreui/tree/main/public/fonts) directory.
|
|
95
|
+
|
|
96
|
+
The `Setup` mixin can also accept the following options:
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
| Property | Default value | Purpose |
|
|
100
|
+
|-----------|---------------|---------|
|
|
101
|
+
| `includeResets` | `true` | Include reset styles. Set to `false` if you want to use your own CSS resets. |
|
|
102
|
+
| `includeUtilities` | `true` | Adds utility classes for CSS. Read more about the available utility classes [here](https://webcoreui.dev/docs/layout). |
|
|
103
|
+
| `includeTooltip` | `true` | Adds styles for using tooltips.
|
|
104
|
+
| `includeScrollbarStyles` | `true` | Adds styles for scrollbars.
|
|
105
|
+
|
|
106
|
+
Default component styles can be changed by overriding the following CSS variables:
|
|
107
|
+
|
|
108
|
+
```scss
|
|
109
|
+
html body {
|
|
110
|
+
// Avatar component
|
|
111
|
+
--w-avatar-border: var(--w-color-primary-70);
|
|
112
|
+
|
|
113
|
+
// Checkbox component
|
|
114
|
+
--w-checkbox-color: var(--w-color-primary);
|
|
115
|
+
|
|
116
|
+
// Collapsible component
|
|
117
|
+
--w-collapsible-initial-height: 0;
|
|
118
|
+
--w-collapsible-max-height: 100%;
|
|
119
|
+
|
|
120
|
+
// Masonry component
|
|
121
|
+
--w-masonry-gap: 5px;
|
|
122
|
+
|
|
123
|
+
// Progress component
|
|
124
|
+
--w-progress-color: var(--w-color-primary);
|
|
125
|
+
--w-progress-background: var(--w-color-primary-50);
|
|
126
|
+
--w-progress-stripe-light: var(--w-color-primary);
|
|
127
|
+
--w-progress-stripe-dark: var(--w-color-primary-10);
|
|
128
|
+
|
|
129
|
+
// Radio component
|
|
130
|
+
--w-radio-color: var(--w-color-primary);
|
|
131
|
+
|
|
132
|
+
// Rating component
|
|
133
|
+
--w-rating-color: var(--w-color-primary);
|
|
134
|
+
--w-rating-empty-color: var(--w-color-primary);
|
|
135
|
+
--w-rating-empty-background: var(--w-color-primary-70);
|
|
136
|
+
--w-rating-size: 18px;
|
|
137
|
+
|
|
138
|
+
// Scrollbars
|
|
139
|
+
--w-scrollbar-bg: var(--w-color-primary-60);
|
|
140
|
+
--w-scrollbar-fg: var(--w-color-primary-50);
|
|
141
|
+
|
|
142
|
+
// Slider component
|
|
143
|
+
--w-slider-background: var(--w-color-primary-50);
|
|
144
|
+
--w-slider-color: var(--w-color-primary);
|
|
145
|
+
--w-slider-thumb: var(--w-color-primary-50);
|
|
146
|
+
|
|
147
|
+
// Spinner component
|
|
148
|
+
--w-spinner-color: var(--w-color-primary);
|
|
149
|
+
--w-spinner-width: 2px;
|
|
150
|
+
--w-spinner-speed: 2s;
|
|
151
|
+
--w-spinner-size: 30px;
|
|
152
|
+
--w-spinner-dash: 8;
|
|
153
|
+
|
|
154
|
+
// Switch component
|
|
155
|
+
--w-switch-off-color: var(--w-color-primary-50);
|
|
156
|
+
--w-switch-on-color: var(--w-color-primary);
|
|
157
|
+
|
|
158
|
+
// ThemeSwitcher component
|
|
159
|
+
--w-theme-switcher-size: 20px;
|
|
160
|
+
|
|
161
|
+
// Timeline component
|
|
162
|
+
--w-timeline-color: var(--w-color-primary-50);
|
|
163
|
+
--w-timeline-text-color: var(--w-color-primary);
|
|
164
|
+
--w-timeline-counter: decimal;
|
|
165
|
+
|
|
166
|
+
// Tooltips
|
|
167
|
+
--w-tooltip-background: var(--w-color-primary);
|
|
168
|
+
--w-tooltip-color: var(--w-color-primary-70);
|
|
169
|
+
|
|
170
|
+
// Override border-radius
|
|
171
|
+
--w-sm-radius: 2px;
|
|
172
|
+
--w-md-radius: 5px;
|
|
173
|
+
--w-lg-radius: 10px;
|
|
174
|
+
--w-xl-radius: 15px;
|
|
175
|
+
}
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
### Using Components
|
|
179
|
+
|
|
180
|
+
Start using Webcore components in your code by importing them:
|
|
181
|
+
|
|
182
|
+
```astro
|
|
183
|
+
---
|
|
184
|
+
// Import the component relevant to your project
|
|
185
|
+
// How to import Astro components
|
|
186
|
+
import { Accordion } from 'webcoreui/astro'
|
|
187
|
+
|
|
188
|
+
// How to import Svelte components
|
|
189
|
+
import { Accordion } from 'webcoreui/svelte'
|
|
190
|
+
|
|
191
|
+
// How to import React components
|
|
192
|
+
import { Accordion } from 'webcoreui/react'
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
<Accordion items={[{ ... }]} />
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
## Components
|
|
199
|
+
|
|
200
|
+
- [Accordion](https://github.com/Frontendland/webcoreui/tree/main/src/components/Accordion)
|
|
201
|
+
- [Alert](https://github.com/Frontendland/webcoreui/tree/main/src/components/Alert)
|
|
202
|
+
- [Avatar](https://github.com/Frontendland/webcoreui/tree/main/src/components/Avatar)
|
|
203
|
+
- [Badge](https://github.com/Frontendland/webcoreui/tree/main/src/components/Badge)
|
|
204
|
+
- [Breadcrumb](https://github.com/Frontendland/webcoreui/tree/main/src/components/Breadcrumb)
|
|
205
|
+
- [Button](https://github.com/Frontendland/webcoreui/tree/main/src/components/Button)
|
|
206
|
+
- [Card](https://github.com/Frontendland/webcoreui/tree/main/src/components/Card)
|
|
207
|
+
- [Carousel](https://github.com/Frontendland/webcoreui/tree/main/src/components/Carousel)
|
|
208
|
+
- [Checkbox](https://github.com/Frontendland/webcoreui/tree/main/src/components/Checkbox)
|
|
209
|
+
- [Collapsible](https://github.com/Frontendland/webcoreui/tree/main/src/components/Collapsible)
|
|
210
|
+
- [ConditionalWrapper](https://github.com/Frontendland/webcoreui/tree/main/src/components/ConditionalWrapper)
|
|
211
|
+
- [DataTable](https://github.com/Frontendland/webcoreui/tree/main/src/components/DataTable)
|
|
212
|
+
- [Footer](https://github.com/Frontendland/webcoreui/tree/main/src/components/Footer)
|
|
213
|
+
- [Group](https://github.com/Frontendland/webcoreui/tree/main/src/components/Group)
|
|
214
|
+
- [Icon](https://github.com/Frontendland/webcoreui/tree/main/src/components/Icon)
|
|
215
|
+
- [Input](https://github.com/Frontendland/webcoreui/tree/main/src/components/Input)
|
|
216
|
+
- [List](https://github.com/Frontendland/webcoreui/tree/main/src/components/List)
|
|
217
|
+
- [Masonry](https://github.com/Frontendland/webcoreui/tree/main/src/components/Masonry)
|
|
218
|
+
- [Menu](https://github.com/Frontendland/webcoreui/tree/main/src/components/Menu)
|
|
219
|
+
- [Modal](https://github.com/Frontendland/webcoreui/tree/main/src/components/Modal)
|
|
220
|
+
- [Pagination](https://github.com/Frontendland/webcoreui/tree/main/src/components/Pagination)
|
|
221
|
+
- [Popover](https://github.com/Frontendland/webcoreui/tree/main/src/components/Popover)
|
|
222
|
+
- [Progress](https://github.com/Frontendland/webcoreui/tree/main/src/components/Progress)
|
|
223
|
+
- [Radio](https://github.com/Frontendland/webcoreui/tree/main/src/components/Radio)
|
|
224
|
+
- [Rating](https://github.com/Frontendland/webcoreui/tree/main/src/components/Rating)
|
|
225
|
+
- [Select](https://github.com/Frontendland/webcoreui/tree/main/src/components/Select)
|
|
226
|
+
- [Sheet](https://github.com/Frontendland/webcoreui/tree/main/src/components/Sheet)
|
|
227
|
+
- [Sidebar](https://github.com/Frontendland/webcoreui/tree/main/src/components/Sidebar)
|
|
228
|
+
- [Slider](https://github.com/Frontendland/webcoreui/tree/main/src/components/Slider)
|
|
229
|
+
- [Spinner](https://github.com/Frontendland/webcoreui/tree/main/src/components/Spinner)
|
|
230
|
+
- [Switch](https://github.com/Frontendland/webcoreui/tree/main/src/components/Switch)
|
|
231
|
+
- [Table](https://github.com/Frontendland/webcoreui/tree/main/src/components/Table)
|
|
232
|
+
- [Tabs](https://github.com/Frontendland/webcoreui/tree/main/src/components/Tabs)
|
|
233
|
+
- [Textarea](https://github.com/Frontendland/webcoreui/tree/main/src/components/Textarea)
|
|
234
|
+
- [ThemeSwitcher](https://github.com/Frontendland/webcoreui/tree/main/src/components/ThemeSwitcher)
|
|
235
|
+
- [Timeline](https://github.com/Frontendland/webcoreui/blob/main/src/pages/timeline.astro)
|
|
236
|
+
- [Toast](https://github.com/Frontendland/webcoreui/tree/main/src/components/Toast)
|
|
237
|
+
- [Tooltip](https://github.com/Frontendland/webcoreui/blob/main/src/pages/tooltip.astro)
|