# Action Button
URL: /lynx/components/action-button
Source: https://github.com/daangn/seed-design/blob/dev/docs/content/lynx/components/action-button.mdx
A basic interaction component that helps users easily perform clear actions.
Lynx Engine 최소 버전: 3.6
사용 가능 버전: @seed-design/lynx-react@0.1.0, @seed-design/lynx-css@0.1.0
## 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 `ActionButton` is provided directly from the `@seed-design/lynx-react` package without a separate `ui:action-button` snippet.
## Usage
## Preview
```tsx
import "./styles";
import { ActionButton, useSeedClassName } from "@seed-design/lynx-react";
export default function Example() {
const seedClassName = useSeedClassName({ colorMode: "system" });
return (
라벨
);
}
```
## Props
## Examples
### Brand Solid
```tsx
import "./styles";
import { ActionButton, useSeedClassName } from "@seed-design/lynx-react";
export default function Example() {
const seedClassName = useSeedClassName({ colorMode: "system" });
return (
라벨
);
}
```
### Neutral Solid
```tsx
import "./styles";
import { ActionButton, useSeedClassName } from "@seed-design/lynx-react";
export default function Example() {
const seedClassName = useSeedClassName({ colorMode: "system" });
return (
라벨
);
}
```
### Neutral Weak
```tsx
import "./styles";
import { ActionButton, useSeedClassName } from "@seed-design/lynx-react";
export default function Example() {
const seedClassName = useSeedClassName({ colorMode: "system" });
return (
라벨
);
}
```
### Critical Solid
```tsx
import "./styles";
import { ActionButton, useSeedClassName } from "@seed-design/lynx-react";
export default function Example() {
const seedClassName = useSeedClassName({ colorMode: "system" });
return (
라벨
);
}
```
### Brand Outline
```tsx
import "./styles";
import { ActionButton, useSeedClassName } from "@seed-design/lynx-react";
export default function Example() {
const seedClassName = useSeedClassName({ colorMode: "system" });
return (
라벨
);
}
```
### Neutral Outline
```tsx
import "./styles";
import { ActionButton, useSeedClassName } from "@seed-design/lynx-react";
export default function Example() {
const seedClassName = useSeedClassName({ colorMode: "system" });
return (
라벨
);
}
```
### Ghost
Lynx supports basic Ghost styling. Custom `color` and `fontWeight` from the web are not supported.
```tsx
import "./styles";
import IconTagFill from "@karrotmarket/lynx-monochrome-icon/IconTagFill";
import { ActionButton, PrefixIcon, useSeedClassName } from "@seed-design/lynx-react";
export default function Example() {
const seedClassName = useSeedClassName({ colorMode: "system" });
return (
} />
Default (fg.neutral)
);
}
```
### Icon Only
```tsx
import "./styles";
import IconPlusFill from "@karrotmarket/lynx-monochrome-icon/IconPlusFill";
import { ActionButton, Icon, useSeedClassName } from "@seed-design/lynx-react";
export default function Example() {
const seedClassName = useSeedClassName({ colorMode: "system" });
return (
} />
);
}
```
Icon colors are not applied in the document preview. You can check the actual icon colors by running Lynx Explorer from the QR code tab.
### Prefix Icon
```tsx
import "./styles";
import IconPlusFill from "@karrotmarket/lynx-monochrome-icon/IconPlusFill";
import { ActionButton, PrefixIcon, useSeedClassName } from "@seed-design/lynx-react";
export default function Example() {
const seedClassName = useSeedClassName({ colorMode: "system" });
return (
} />
라벨
);
}
```
Icon colors are not applied in the document preview. You can check the actual icon colors by running Lynx Explorer from the QR code tab.
### Suffix Icon
```tsx
import "./styles";
import IconChevronRightFill from "@karrotmarket/lynx-monochrome-icon/IconChevronRightFill";
import { ActionButton, SuffixIcon, useSeedClassName } from "@seed-design/lynx-react";
export default function Example() {
const seedClassName = useSeedClassName({ colorMode: "system" });
return (
라벨
} />
);
}
```
Icon colors are not applied in the document preview. You can check the actual icon colors by running Lynx Explorer from the QR code tab.
### Disabled
```tsx
import "./styles";
import { ActionButton, useSeedClassName } from "@seed-design/lynx-react";
export default function Example() {
const seedClassName = useSeedClassName({ colorMode: "system" });
return (
라벨
);
}
```
### Loading
```tsx
import "./styles";
import { useState } from "@lynx-js/react";
import { ActionButton, useSeedClassName } from "@seed-design/lynx-react";
export default function Example() {
const seedClassName = useSeedClassName({ colorMode: "system" });
const [loading, setLoading] = useState(false);
function handleTap() {
"background only";
setLoading(true);
setTimeout(() => setLoading(false), 2000);
}
return (
시간이 걸리는 액션
);
}
```
## Web Version Differences
Lynx `ActionButton` has the following differences from React `ActionButton`:
- **Event Handling**: Uses `bindtap` instead of `onClick`.
- **Rendering Elements**: Renders native ``/`` elements instead of HTML `
## Unsupported Lynx Features
The following features are not supported due to current Lynx platform limitations.
| Feature | Web Equivalent | Description |
| ----------------------------- | -------------- | -------------------------------------- |
| `color` | StyleProps | Limited CSS variable dynamic injection |
| `fontWeight` | StyleProps | Limited CSS variable dynamic injection |
| `bleed` / `bleedX` / `bleedY` | StyleProps | Limited CSS variable dynamic injection |
The **Bleed** example from the React documentation uses `bleed`, `bleedX`, and `bleedY` which are not supported in Lynx, so it is excluded from Lynx Examples.