Data display

Chip.

A little context, a little color.

Live preview

Live preview
LuminescentPublishedDesign systemsv2.0
ReactTypeScriptLuminescent
tsx
import { Chip } from "luminescent";
import "luminescent/style.css";


export function Example() {
  return (
    <Chip glowColor="mint" onDelete={() => {}} deleteLabel="Remove React">
      React
    </Chip>
  );
}

Installation

bash
npm install luminescent

Import luminescent/style.css once at your application root. The example above uses the same package implementation as Storybook.

Variants and states

Use the preview controls to explore the supported variants, sizes, disabled/loading states and reduced motion. Controls appear only where the component exposes the corresponding prop. Theme and glow apply to every component.

API reference

Generated from the source TypeScript interfaces. Native attributes, className, style, aria-* and data-* also pass through to the documented element. Import ChipProps from the package for the full inherited contract.

PropTypeDetails
childrenrequiredReact.ReactNodeOptional unless marked required.
variant'soft' | 'outlined'Optional unless marked required.
size'sm' | 'md'Optional unless marked required.
glowColorGlowColorOptional unless marked required.
iconReact.ReactNodeOptional unless marked required.
onDelete() => voidOptional unless marked required.
deleteLabelstringOptional unless marked required.
disabledbooleanOptional unless marked required.

Accessibility and keyboard

Removal is a native button with a specific accessible label. Disabled chips also disable their removal button.

Keep labels meaningful and test application-level contrast, focus order and screen-reader output. See the accessibility guide for composition requirements.

Theme customization

tsx
import { LuminescentProvider, Chip } from "luminescent";
import "luminescent/style.css";


export function Example() {
  return (
    <LuminescentProvider theme="light" accent="violet" glow="subtle">
      <Chip glowColor="mint" onDelete={() => {}} deleteLabel="Remove React">
        React
      </Chip>
    </LuminescentProvider>
  );
}

Switch between light and dark in the preview, or open the playground for a larger workspace. Custom CSS variables can override spacing, color, typography and effects.

Related components