Componentticket-stub0.38 KB gzipZero dependencies
Lanyard
Strap with clip that sways gently from the top and holds an attached card slot for children.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add lanyardOr install the full npm package:
npm install bigbulluiUsage
tsx5 lines
import { Lanyard } from "@/components/ui/lanyard"; <Lanyard label="CONFERENCE 2026"> <GuestCard /></Lanyard>Source code
lanyard.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxlanyard.tsx31 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface LanyardProps extends React.HTMLAttributes<HTMLElement> { label?: string; children?: React.ReactNode;} export function Lanyard({ label, children, ...props }: LanyardProps) { return ( <div className={cn( "relative size-64 size-1/3 max-w-full rounded-md border border-border bg-card p-4 motion-reduce:transition-none", "group" )} {...props} >Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { Lanyard } from "@/components/ui/lanyard"; <Lanyard />| Prop | Type | Description |
|---|---|---|
| label | string | Accessible label text rendered or attached to the control. |
| children | React.ReactNode | Child elements rendered inside the component. |