Skip to content

Status

A dot and a word, no pill. Changing state kicks the dot through a springy dip while its fill cross-fades, rolls the word vertically and springs the width to fit.

Download
Customize

4s.

Install

npx shadcn@latest add https://obsydeui.com/r/status.json

Usage

Import it from where the CLI puts it, or copy the files below by hand.

import { Status } from '@/components/obsyde/ember/status/Status';

export function Example() {
  return (
    <Status state="live" />
  );
}

Files

Plain React, TypeScript and CSS. No dependencies. The download keeps these paths.

  • ember/status/Status.tsxcomponent
  • ember/status/status.cssstyles
  • ember/status/StatusDemo.tsxdemo
  • ember/status-kit/kit.tsshared
  • ember/shared/chart-kit.tsshared
  • ember/shared/spring.tsshared
  • ember/shared/accent.tsshared
  • ember/shared/ember.cssshared

API

PropTypeDefault
accentAccent'ember' | 'volt' | 'arc''ember'
stateState'idle' | 'live' | 'ok' | 'warn' | 'error''live'
sizeSize'sm' | 'md''md'
labelLabelstring—