Lynx

Manner Temp

A component that expresses the user's manner temperature with temperature and expression images.

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 MannerTemp is provided directly from the @seed-design/lynx-react package without a separate ui:manner-temp snippet.

Properties

MannerTemp

Prop

Type

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

MannerTempEmote

Prop

Type

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

Usage

Specify the manner temperature range in level. If you add MannerTempEmote as a child, it displays the expression image for the same level.

import { MannerTemp, MannerTempEmote } from "@seed-design/lynx-react";

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

Differences from Web Version

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

Table of contents