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
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add lanyard

Or install the full npm package:

npm install bigbullui

Usage

tsx5 lines
import { Lanyard } from "@/components/ui/lanyard"; <Lanyard label="CONFERENCE 2026">  <GuestCard /></Lanyard>

Source code

lanyard.tsx + 1 helper

Zero 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 />
PropTypeDescription
labelstringAccessible label text rendered or attached to the control.
childrenReact.ReactNodeChild elements rendered inside the component.