DOCUMENTATION / REFERENCE

    Familiar APIs. Considered details.

    Components follow React conventions, forward their refs, and build on native elements and Radix primitives.

    Source and package imports

    The recommended CLI workflow places editable modules in your project. Import named exports such as Button from your local components/ui/button file. The members-table block uses a default export from components/members-table and includes a CSS module. Adjust relative paths for the importing file. The alternative compiled package exposes focused entries such as @scriptwithahmad/u-lib/button and a shared styles.css export.

    See the installation guide for CLI commands, configuration fields, generated files and update behavior. CLI configuration is independent of component props.

    Component configuration

    Each component detail page contains its own Props & configuration table. Native attributes such as disabled, aria-label, event handlers, and className remain available where supported by the underlying element.

    Optional motion

    Buttons, cards, and supported content surfaces accept optional motion props. Existing behavior is preserved when these props are omitted.

    PropTypeBehavior
    animatedbooleanEnable the component’s motion preset, or explicitly disable it.
    animationTypestringButton: lift, tilt, press, none. Card: lift, tilt, none. Supported surfaces: depth, none.
    intensitynumberEffect strength, bounded to 0–2. Default: 1.
    durationnumberMilliseconds, bounded to 0–1000. Default when opted in: 180.
    <Button animated animationType="press" intensity={0.6}>Save</Button>
    <Card animated animationType="tilt" duration={220}>...</Card>
    <DialogContent animated={false}>...</DialogContent>

    Tabs and keyboard navigation

    Use Tabs, TabsList, TabsTrigger, and TabsContent from the shared tabs module. The list supports indicatorVariant="underline"; unstyled variants keep the shared behavior while allowing custom presentation.

    Accessibility and reduced motion

    Keep the original accessible names, labels, focus management, and native control behavior. Optional effects honor reduced motion. Keyboard tab activation remains instant. Decorative 3D scenes offer pause controls and do not contain essential actions.