twico-ui 1.0.2 → 1.1.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/dist/index.cjs +160 -131
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.mjs +160 -132
- package/dist/index.mjs.map +1 -1
- package/llms.txt +37 -3
- package/package.json +1 -1
package/llms.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Twico UI — LLM usage guide (llms.txt)
|
|
2
2
|
|
|
3
|
-
Twico UI is a free, MIT-licensed **React component library**:
|
|
3
|
+
Twico UI is a free, MIT-licensed **React component library**: 62 components and 23 standalone
|
|
4
4
|
hooks (plus the `useToast` hook), with dark mode, motion, accessibility, RTL, a density scale, and
|
|
5
5
|
design tokens. **Zero runtime dependencies** (peer: `react`/`react-dom` >= 18).
|
|
6
6
|
|
|
@@ -194,7 +194,7 @@ in the examples.
|
|
|
194
194
|
|
|
195
195
|
---
|
|
196
196
|
|
|
197
|
-
## Component reference (
|
|
197
|
+
## Component reference (62 components)
|
|
198
198
|
|
|
199
199
|
### Buttons & actions
|
|
200
200
|
|
|
@@ -266,6 +266,40 @@ const TrashIcon = () => (<svg width="18" height="18" viewBox="0 0 24 24" fill="n
|
|
|
266
266
|
|
|
267
267
|
### Layout
|
|
268
268
|
|
|
269
|
+
#### AppShell
|
|
270
|
+
|
|
271
|
+
Full-height application shell: a fixed sidebar beside a scrollable content area with an optional fixed topbar. The content fills the remaining width and scrolls independently, so the sidebar and header stay put.
|
|
272
|
+
|
|
273
|
+
`import { AppShell } from "twico-ui"`
|
|
274
|
+
|
|
275
|
+
Props:
|
|
276
|
+
- `sidebar` — `React.ReactNode` — The sidebar element (e.g. a Sidebar), rendered full-height on the inline-start side of the shell.
|
|
277
|
+
- `header` — `React.ReactNode` — Topbar content in a fixed header above the content; a flex row with space-between, so pass a left and a right group.
|
|
278
|
+
- `children` — `React.ReactNode` — Main content; fills the remaining space and scrolls independently of the fixed sidebar and header.
|
|
279
|
+
- `height` — `string | number` · default `"100dvh"` — Overall shell height; pass a fixed value to embed the shell inside a smaller region (e.g. a demo).
|
|
280
|
+
- `padded` — `boolean` · default `true` — Pads the scrollable content region with the standard page padding; set false for edge-to-edge content.
|
|
281
|
+
|
|
282
|
+
```jsx
|
|
283
|
+
import { AppShell, Sidebar, Button } from "twico-ui";
|
|
284
|
+
|
|
285
|
+
<AppShell
|
|
286
|
+
sidebar={
|
|
287
|
+
<Sidebar
|
|
288
|
+
brand={<b>Acme</b>}
|
|
289
|
+
items={[{ label: "Home", active: true }, { label: "Settings" }]}
|
|
290
|
+
/>
|
|
291
|
+
}
|
|
292
|
+
header={
|
|
293
|
+
<>
|
|
294
|
+
<b>Dashboard</b>
|
|
295
|
+
<Button size="sm">New</Button>
|
|
296
|
+
</>
|
|
297
|
+
}
|
|
298
|
+
>
|
|
299
|
+
<h1>Welcome back</h1>
|
|
300
|
+
</AppShell>
|
|
301
|
+
```
|
|
302
|
+
|
|
269
303
|
#### Box
|
|
270
304
|
|
|
271
305
|
Generic, token-styled box — the building block for non-flex layout (padding, margin, background, border, radius, shadow) without writing CSS.
|
|
@@ -2416,5 +2450,5 @@ export function useId(prefix?: string): string;
|
|
|
2416
2450
|
|
|
2417
2451
|
---
|
|
2418
2452
|
|
|
2419
|
-
_Generated by `scripts/gen-llms.mjs` from twico-ui v1.0.
|
|
2453
|
+
_Generated by `scripts/gen-llms.mjs` from twico-ui v1.1.0. Do not edit by hand — run `npm run gen:llms`. Source of truth: the component `.d.ts` files and `hooks/index.d.ts`._
|
|
2420
2454
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "twico-ui",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Twico UI — a free, modern, themeable React + Tailwind-friendly component library. 61 components with dark mode, motion, and accessibility built in.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Twico UI",
|