Skip to content

Commit 9908ed0

Browse files
committed
Initial Shadcn Table implementation
Adds sorting, filtering and paging. Styling isn't perfect. The last column text can throw off the layout because it is too long.
1 parent bc99f83 commit 9908ed0

File tree

15 files changed

+1800
-116
lines changed

15 files changed

+1800
-116
lines changed

astro.config.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ import starlightUtils from '@lorenzo_lewis/starlight-utils';
55

66
import markdoc from '@astrojs/markdoc';
77

8+
import react from '@astrojs/react';
9+
10+
import tailwindcss from '@tailwindcss/vite';
11+
812
// Fetch the latest release version from GitHub
913
const response = await fetch(
1014
'https://api.github.com/repos/localstack/localstack/releases/latest',
@@ -27,9 +31,11 @@ export default defineConfig({
2731
}),
2832
},
2933
},
34+
3035
integrations: [
3136
starlight({
3237
title: 'LocalStack Docs',
38+
customCss: ['./src/styles/global.css'],
3339
social: [
3440
{
3541
icon: 'github',
@@ -300,5 +306,10 @@ export default defineConfig({
300306
],
301307
}),
302308
markdoc(),
309+
react(),
303310
],
311+
312+
vite: {
313+
plugins: [tailwindcss()],
314+
},
304315
});

components.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": false,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "",
8+
"css": "src/styles/global.css",
9+
"baseColor": "neutral",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
},
20+
"iconLibrary": "lucide"
21+
}

0 commit comments

Comments
 (0)