# Manner Temp Badge
URL: /lynx/components/manner-temp-badge
Source: https://github.com/daangn/seed-design/blob/dev/docs/content/lynx/components/manner-temp-badge.mdx
A component that represents manner temperature as a small badge.
Lynx Engine 최소 버전: 3.6
사용 가능 버전: @seed-design/lynx-react@0.6.0, @seed-design/lynx-css@0.10.0
## Preview
```tsx
import "./styles";
import { MannerTempBadge, useSeedClassName, VStack } from "@seed-design/lynx-react";
const mannerTemps = [
["l1", "12.5°C"],
["l2", "30°C"],
["l3", "36°C"],
["l4", "36.5°C"],
["l5", "37°C"],
["l6", "40°C"],
["l7", "45°C"],
["l8", "55°C"],
["l9", "65°C"],
["l10", "80°C"],
] as const;
export default function Example() {
const seedClassName = useSeedClassName({ colorMode: "system" });
return (
{mannerTemps.map(([level, label]) => (
{label}
))}
);
}
```
## Installation
- npm: npm install @seed-design/lynx-react @seed-design/lynx-css
- pnpm: pnpm add @seed-design/lynx-react @seed-design/lynx-css
- yarn: yarn add @seed-design/lynx-react @seed-design/lynx-css
- bun: bun add @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
## Usage
Specify the manner temperature range in `level` and pass the temperature to display as a child.
```tsx
import { MannerTempBadge } from "@seed-design/lynx-react";
export function App() {
return 36.5°C;
}
```
## Web Version Differences
- **Rendering elements.** Renders native `` and `` instead of HTML ``.
- **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.