Lynx

Manner Temp Badge

A component that represents manner temperature as a small badge.

Engine ≥ 3.6
Available since@seed-design/lynx-react@0.6.0, @seed-design/lynx-css@0.10.0
Loading Lynx example…

Installation

npm install @seed-design/lynx-react @seed-design/lynx-css

Lynx MannerTempBadge is provided directly from the @seed-design/lynx-react package without a separate ui:manner-temp-badge snippet.

Props

Prop

Type

style?CSSProperties | undefined
children?React.ReactNode
className?string | undefined

Usage

Specify the manner temperature range in level and pass the temperature to display as a child.

import { MannerTempBadge } from "@seed-design/lynx-react";

export function App() {
  return <MannerTempBadge level="l4">36.5°C</MannerTempBadge>;
}

Web Version Differences

  • Rendering elements. Renders native <view> and <text> instead of HTML <span>.
  • Public path. Unlike the ui:manner-temp-badge snippet in React documentation, Lynx uses the package API directly.
  • Temperature conversion. The Lynx package does not convert temperature to level. Calculate and pass level according to your product's manner temperature standard.
  • Polymorphic rendering. Web's asChild and HTML attribute surface are not provided.

Table of contents