버튼
버튼 (Button)
버튼 컴포넌트는 표준 button 요소를 확장해 아이콘과 테마 기능을 더한 컴포넌트예요. 라벨과 아이콘, 심각도별 색상은 물론 outlined, raised, text 같은 스타일 변형과 로딩 상태, 배지, 버튼 그룹까지 폭넓게 지원해요. 디렉티브 방식과 커스텀 템플릿 활용법부터 접근성, CSS 클래스와 디자인 토큰을 활용한 테마 설정까지 문서에서 자세히 다뤄요
출처: 문서
본문
접근성
스크린 리더 Button 컴포넌트는 전달된 모든 prop을 암묵적으로 포함하는 네이티브 button 엘리먼트를 렌더링해요. 버튼을 설명하는 텍스트는 aria-label prop으로 정의하고, 값이 없으면 label prop이 값으로 사용돼요. 버튼이 아이콘만 있거나 커스텀 템플릿을 사용하는 경우에는 스크린 리더가 엘리먼트를 제대로 읽을 수 있도록 aria-label을 사용하는 게 좋아요.
배지
버튼에는 badge와 badgeClass 프로퍼티를 사용한 배지 지원이 내장되어 있어요.
import { Component } from '@angular/core';
import { ButtonModule } from 'primeng/button';
@Component({
template: `
<div class="card flex justify-center flex-wrap gap-4">
<p-button label="Emails" badge="2" styleClass="m-0" />
<p-button label="Messages" icon="pi pi-users" badge="2" badgeSeverity="contrast" styleClass="m-0" [outlined]="true" />
</div>
`,
standalone: true,
imports: [ButtonModule]
})
export class ButtonBadgeDemo {}
기본
버튼에 표시할 텍스트는 label 프로퍼티로 정의해요.
import { Component } from '@angular/core';
import { ButtonModule } from 'primeng/button';
@Component({
template: `
<div class="card flex justify-center">
<p-button label="Submit" />
</div>
`,
standalone: true,
imports: [ButtonModule]
})
export class ButtonBasicDemo {}
버튼 그룹
여러 버튼을 ButtonGroup 컴포넌트가 적용된 엘리먼트로 감싸면 하나의 그룹으로 묶여요.
import { Component } from '@angular/core';
import { ButtonModule } from 'primeng/button';
@Component({
template: `
<div class="card flex justify-center">
<p-buttongroup>
<p-button label="Save" icon="pi pi-check" />
<p-button label="Delete" icon="pi pi-trash" />
<p-button label="Cancel" icon="pi pi-times" />
</p-buttongroup>
</div>
`,
standalone: true,
imports: [ButtonModule]
})
export class ButtonButtongroupDemo {}
buttonset-doc
여러 버튼을 p-buttonset 클래스가 적용된 엘리먼트로 감싸면 하나의 그룹으로 묶여요.
import { Component } from '@angular/core';
import { ButtonModule } from 'primeng/button';
import { RippleModule } from 'primeng/ripple';
@Component({
template: `
<div class="card flex justify-center">
<span class="p-buttonset">
<button pButton pRipple label="Save" icon="pi pi-check"></button>
<button pButton pRipple label="Delete" icon="pi pi-trash"></button>
<button pButton pRipple label="Cancel" icon="pi pi-times"></button>
</span>
</div>
`,
standalone: true,
imports: [ButtonModule, RippleModule]
})
export class ButtonButtonsetDemo {}
디렉티브
버튼은 pButton 디렉티브를 pButtonLabel, pButtonIcon 헬퍼 디렉티브와 함께 사용해서 디렉티브 형태로도 활용할 수 있어요.
import { Component } from '@angular/core';
import { ButtonModule } from 'primeng/button';
@Component({
template: `
<div class="card flex justify-center">
<button pButton>
<i class="pi pi-check" pButtonIcon></i>
<span pButtonLabel>Save</span>
</button>
</div>
`,
standalone: true,
imports: [ButtonModule]
})
export class ButtonDirectiveDemo {}
비활성화
disabled가 있으면 엘리먼트를 편집하거나 포커스를 줄 수 없어요.
import { Component } from '@angular/core';
import { ButtonModule } from 'primeng/button';
@Component({
template: `
<div class="card flex justify-center">
<p-button label="Submit" [disabled]="true" />
</div>
`,
standalone: true,
imports: [ButtonModule]
})
export class ButtonDisabledDemo {}
아이콘
버튼의 아이콘은 icon 프로퍼티로 지정하고, 위치는 iconPos 속성으로 설정해요.
import { Component } from '@angular/core';
import { ButtonModule } from 'primeng/button';
@Component({
template: `
<div class="card flex flex-col items-center gap-4">
<div class="flex flex-wrap gap-4 justify-center">
<p-button icon="pi pi-home" aria-label="Save" />
<p-button label="Profile" icon="pi pi-user" />
<p-button label="Save" icon="pi pi-check" iconPos="right" />
</div>
<div class="flex flex-wrap gap-4 justify-center">
<p-button label="Search" icon="pi pi-search" iconPos="top" />
<p-button label="Update" icon="pi pi-refresh" iconPos="bottom" />
</div>
</div>
`,
standalone: true,
imports: [ButtonModule]
})
export class ButtonIconsDemo {}
iconsonly-doc
버튼은 라벨 없이 아이콘만 가질 수 있어요.
import { Component } from '@angular/core';
import { ButtonModule } from 'primeng/button';
@Component({
template: `
<div class="card">
<div class="flex justify-center flex-wrap gap-4 mb-6">
<p-button icon="pi pi-check" />
<p-button icon="pi pi-bookmark" severity="secondary" />
<p-button icon="pi pi-search" severity="success" />
<p-button icon="pi pi-user" severity="info" />
<p-button icon="pi pi-bell" severity="warn" />
<p-button icon="pi pi-heart" severity="help" />
<p-button icon="pi pi-times" severity="danger" />
</div>
<div class="flex justify-center flex-wrap gap-4 mb-6">
<p-button icon="pi pi-check" [rounded]="true" />
<p-button icon="pi pi-bookmark" [rounded]="true" severity="secondary" />
<p-button icon="pi pi-search" [rounded]="true" severity="success" />
<p-button icon="pi pi-user" [rounded]="true" severity="info" />
<p-button icon="pi pi-bell" [rounded]="true" severity="warn" />
<p-button icon="pi pi-heart" [rounded]="true" severity="help" />
<p-button icon="pi pi-times" [rounded]="true" severity="danger" />
</div>
<div class="flex justify-center flex-wrap gap-4 mb-6">
<p-button icon="pi pi-check" [rounded]="true" [outlined]="true" />
<p-button icon="pi pi-bookmark" [rounded]="true" severity="secondary" [outlined]="true" />
<p-button icon="pi pi-search" [rounded]="true" severity="success" [outlined]="true" />
<p-button icon="pi pi-user" [rounded]="true" severity="info" [outlined]="true" />
<p-button icon="pi pi-bell" [rounded]="true" severity="warn" [outlined]="true" />
<p-button icon="pi pi-heart" [rounded]="true" severity="help" [outlined]="true" />
<p-button icon="pi pi-times" [rounded]="true" severity="danger" [outlined]="true" />
</div>
<div class="flex justify-center flex-wrap gap-4 mb-6">
<p-button icon="pi pi-check" [rounded]="true" [text]="true" [raised]="true" />
<p-button icon="pi pi-bookmark" [rounded]="true" [text]="true" [raised]="true" severity="secondary" />
<p-button icon="pi pi-search" [rounded]="true" [text]="true" [raised]="true" severity="success" />
<p-button icon="pi pi-user" [rounded]="true" [text]="true" [raised]="true" severity="info" />
<p-button icon="pi pi-bell" [rounded]="true" [text]="true" [raised]="true" severity="warn" />
<p-button icon="pi pi-heart" [rounded]="true" [text]="true" [raised]="true" severity="help" />
<p-button icon="pi pi-times" [rounded]="true" [text]="true" [raised]="true" severity="danger" />
</div>
<div class="flex justify-center flex-wrap gap-4 mb-6">
<p-button icon="pi pi-check" [rounded]="true" [text]="true" />
<p-button icon="pi pi-bookmark" [rounded]="true" [text]="true" severity="secondary" />
<p-button icon="pi pi-search" [rounded]="true" [text]="true" severity="success" />
<p-button icon="pi pi-user" [rounded]="true" [text]="true" severity="info" />
<p-button icon="pi pi-bell" [rounded]="true" [text]="true" severity="warn" />
<p-button icon="pi pi-heart" [rounded]="true" [text]="true" severity="help" />
<p-button icon="pi pi-times" [rounded]="true" [text]="true" severity="danger" />
</div>
</div>
`,
standalone: true,
imports: [ButtonModule]
})
export class ButtonIconsonlyDemo {}
링크
link 프로퍼티가 있으면 버튼을 링크로 렌더링할 수 있고, pButton 디렉티브를 앵커 엘리먼트에 적용하면 링크를 버튼처럼 스타일링할 수 있어요.
import { Component } from '@angular/core';
import { ButtonModule } from 'primeng/button';
@Component({
template: `
<div class="card flex justify-center gap-4">
<p-button label="Link" link />
<a href="https://angular.dev/" pButton target="_blank" rel="noopener noreferrer">
<span pButtonLabel>Angular Website</span>
</a>
<a routerLink="/" pButton>
<span pButtonLabel>Router Link</span>
</a>
</div>
`,
standalone: true,
imports: [ButtonModule]
})
export class ButtonLinkDemo {}
로딩
바쁨 상태는 loading 프로퍼티로 제어해요.
import { Component, signal } from '@angular/core';
import { ButtonModule } from 'primeng/button';
@Component({
template: `
<div class="card flex justify-center gap-4">
<p-button label="Search" icon="pi pi-check" [loading]="loading()" (onClick)="load()" />
</div>
`,
standalone: true,
imports: [ButtonModule]
})
export class ButtonLoadingDemo {
loading = signal(false);
load() {
this.loading.set(true);
setTimeout(() => {
this.loading.set(false);
}, 2000);
}
}
아웃라인
아웃라인 버튼은 처음에는 배경 없이 테두리만 표시해요.
import { Component } from '@angular/core';
import { ButtonModule } from 'primeng/button';
@Component({
template: `
<div class="card flex flex-wrap gap-4 justify-center">
<p-button label="Primary" variant="outlined" />
<p-button label="Secondary" variant="outlined" severity="secondary" />
<p-button label="Success" variant="outlined" severity="success" />
<p-button label="Info" variant="outlined" severity="info" />
<p-button label="Warn" variant="outlined" severity="warn" />
<p-button label="Help" variant="outlined" severity="help" />
<p-button label="Danger" variant="outlined" severity="danger" />
<p-button label="Contrast" variant="outlined" severity="contrast" />
</div>
`,
standalone: true,
imports: [ButtonModule]
})
export class ButtonOutlinedDemo {}
라이즈드
라이즈드 버튼은 입체감을 나타내기 위해 그림자를 표시해요.
import { Component } from '@angular/core';
import { ButtonModule } from 'primeng/button';
@Component({
template: `
<div class="card flex flex-wrap gap-4 justify-center">
<p-button label="Primary" [raised]="true" />
<p-button label="Secondary" [raised]="true" severity="secondary" />
<p-button label="Success" [raised]="true" severity="success" />
<p-button label="Info" [raised]="true" severity="info" />
<p-button label="Warn" [raised]="true" severity="warn" />
<p-button label="Help" [raised]="true" severity="help" />
<p-button label="Danger" [raised]="true" severity="danger" />
<p-button label="Contrast" [raised]="true" severity="contrast" />
</div>
`,
standalone: true,
imports: [ButtonModule]
})
export class ButtonRaisedDemo {}
Raised 텍스트
텍스트 버튼은 입체감을 표현하기 위해 raised 형태로 표시할 수 있어요.
import { Component } from '@angular/core';
import { ButtonModule } from 'primeng/button';
@Component({
template: `
<div class="card flex flex-wrap gap-4 justify-center">
<p-button label="Primary" variant="text" [raised]="true" />
<p-button label="Secondary" variant="text" [raised]="true" severity="secondary" />
<p-button label="Success" variant="text" [raised]="true" severity="success" />
<p-button label="Info" variant="text" [raised]="true" severity="info" />
<p-button label="Warn" variant="text" [raised]="true" severity="warn" />
<p-button label="Help" variant="text" [raised]="true" severity="help" />
<p-button label="Danger" variant="text" [raised]="true" severity="danger" />
<p-button label="Plain" variant="text" [raised]="true" />
</div>
`,
standalone: true,
imports: [ButtonModule]
})
export class ButtonRaisedtextDemo {}
Rounded
Rounded 버튼은 원형 border radius를 가져요.
import { Component } from '@angular/core';
import { ButtonModule } from 'primeng/button';
@Component({
template: `
<div class="card flex flex-wrap gap-4 justify-center">
<p-button label="Primary" [rounded]="true" />
<p-button label="Secondary" [rounded]="true" severity="secondary" />
<p-button label="Success" [rounded]="true" severity="success" />
<p-button label="Info" [rounded]="true" severity="info" />
<p-button label="Warn" [rounded]="true" severity="warn" />
<p-button label="Help" [rounded]="true" severity="help" />
<p-button label="Danger" [rounded]="true" severity="danger" />
<p-button label="Contrast" [rounded]="true" severity="contrast" />
</div>
`,
standalone: true,
imports: [ButtonModule]
})
export class ButtonRoundedDemo {}
Severity
Severity는 버튼의 유형을 정의해요.
import { Component } from '@angular/core';
import { ButtonModule } from 'primeng/button';
@Component({
template: `
<div class="card flex flex-wrap gap-4 justify-center">
<p-button label="Primary" />
<p-button label="Secondary" severity="secondary" />
<p-button label="Success" severity="success" />
<p-button label="Info" severity="info" />
<p-button label="Warn" severity="warn" />
<p-button label="Help" severity="help" />
<p-button label="Danger" severity="danger" />
<p-button label="Contrast" severity="contrast" />
</div>
`,
standalone: true,
imports: [ButtonModule]
})
export class ButtonSeverityDemo {}
크기
Button은 표준 크기 외에 small과 large 크기를 대안으로 제공해요.
import { Component } from '@angular/core';
import { ButtonModule } from 'primeng/button';
@Component({
template: `
<div class="card flex justify-center flex-wrap gap-4 items-center">
<p-button label="Small" icon="pi pi-check" size="small" />
<p-button label="Normal" icon="pi pi-check" />
<p-button label="Large" icon="pi pi-check" size="large" />
</div>
`,
standalone: true,
imports: [ButtonModule]
})
export class ButtonSizesDemo {}
템플릿
버튼 안에 들어가는 커스텀 콘텐츠는 children으로 정의해요.
import { Component } from '@angular/core';
import { ButtonModule } from 'primeng/button';
@Component({
template: `
<div class="card flex justify-center">
<p-button [outlined]="true">
<svg width="31" height="33" viewBox="0 0 31 33" fill="none" xmlns="http://www.w3.org/2000/svg" class="block mx-auto">
<path d="M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z" fill="var(--p-primary-color)" />
<mask id="mask0_1_52" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="31" height="33">
<path d="M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z" fill="var(--ground-background)" />
</mask>
<g mask="url(#mask0_1_52)">
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.1935 0V3.5994V3.58318V20.0075V20.0075V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1935 0Z" fill="var(--p-primary-color)" />
</g>
<path d="M19.6399 15.3776L18.1861 15.0547L19.3169 16.6695V21.6755L23.1938 18.4458V12.9554L21.4169 13.6013L19.6399 15.3776Z" fill="var(--ground-background)" />
<path d="M10.5936 15.3776L12.0474 15.0547L10.9166 16.6695V21.6755L7.03966 18.4458V12.9554L8.81661 13.6013L10.5936 15.3776Z" fill="var(--ground-background)" />
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M11.3853 16.9726L12.6739 15.0309L13.4793 15.5163H16.7008L17.5061 15.0309L18.7947 16.9726V24.254L17.8283 25.7103L16.7008 26.843H13.4793L12.3518 25.7103L11.3853 24.254V16.9726Z"
fill="var(--ground-background)"
/>
<path d="M19.3168 24.7437L21.4168 22.6444V20.5451L19.3168 22.3214V24.7437Z" fill="var(--ground-background)" />
<path d="M10.9166 24.7437L8.81662 22.6444V20.5451L10.9166 22.3214V24.7437Z" fill="var(--ground-background)" />
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.0167 5.68861L11.7244 8.7568L13.8244 14.8932H14.7936V5.68861H13.0167ZM15.4397 5.68861V14.8932H16.5706L18.5091 8.7568L17.2167 5.68861H15.4397Z" fill="var(--ground-background)" />
<path d="M13.8244 14.8932L6.87813 12.3094L5.90888 8.27235L11.8859 8.7568L13.9859 14.8932H13.8244Z" fill="var(--ground-background)" />
<path d="M16.5706 14.8932L23.5169 12.3094L24.4861 8.27235L18.3476 8.7568L16.4091 14.8932H16.5706Z" fill="var(--ground-background)" />
<path d="M18.8321 8.27235L22.2245 7.94938L19.9629 5.68861H17.7013L18.8321 8.27235Z" fill="var(--ground-background)" />
<path d="M11.4013 8.27235L8.00893 7.94938L10.2705 5.68861H12.5321L11.4013 8.27235Z" fill="var(--ground-background)" />
</svg>
</p-button>
</div>
`,
standalone: true,
imports: [ButtonModule]
})
export class ButtonTemplateDemo {}
Text
Text 버튼은 텍스트 요소 형태로 표시돼요.
import { Component } from '@angular/core';
import { ButtonModule } from 'primeng/button';
@Component({
template: `
<div class="card flex flex-wrap gap-4 justify-center">
<p-button label="Primary" variant="text" />
<p-button label="Secondary" variant="text" severity="secondary" />
<p-button label="Success" variant="text" severity="success" />
<p-button label="Info" variant="text" severity="info" />
<p-button label="Warn" variant="text" severity="warn" />
<p-button label="Help" variant="text" severity="help" />
<p-button label="Danger" variant="text" severity="danger" />
<p-button label="Plain" variant="text" />
</div>
`,
standalone: true,
imports: [ButtonModule]
})
export class ButtonTextDemo {}
Button
Button은 아이콘과 테마 기능을 갖춘 표준 button 엘리먼트의 확장이에요.
프로퍼티
| Name | Type | Default | Description |
|---|---|---|---|
| dt | InputSignal | undefined | 컴포넌트의 스코프 디자인 토큰을 정의해요. |
| unstyled | InputSignal | undefined | 컴포넌트를 스타일 없이 렌더링할지 여부를 나타내요. |
| pt | InputSignal | undefined | 컴포넌트 내부의 DOM 엘리먼트에 속성을 전달할 때 사용해요. |
| ptOptions | InputSignal | undefined | 컴포넌트의 passthrough(pt) 옵션을 설정할 때 사용해요. |
| type | string | button | 버튼의 타입이에요. |
| badge | string | - | 배지의 값이에요. |
| disabled | boolean | false | 설정하면 컴포넌트가 비활성화돼요. |
| raised | boolean | false | 입체감을 나타내는 그림자를 추가해요. |
| rounded | boolean | false | 버튼에 원형 border radius를 추가해요. |
| text | boolean | false | 버튼에 초기 배경 없이 텍스트 클래스를 추가해요. |
| plain | boolean | false | 버튼에 초기 배경 없이 plain 텍스트 클래스를 추가해요. |
| outlined | boolean | false | 초기 배경 없이 테두리 클래스를 추가해요. |
| link | boolean | false | 버튼에 링크 스타일을 추가해요. |
| tabindex | number | - | 버튼에 tabindex를 추가해요. |
| size | "small" | "large" | - | 버튼의 크기를 정의해요. |
| variant | "text" | "outlined" | - | 컴포넌트의 variant를 지정해요. |
| style | { [klass: string]: any } | - | 엘리먼트의 인라인 스타일이에요. |
| styleClass | string | - | 엘리먼트의 클래스예요. |
| badgeClass | string | - | 배지의 스타일 클래스예요. (지원 중단) |
| badgeSeverity | "success" | "info" | "warn" | "danger" | "help" | "primary" | "secondary" | "contrast" | secondary | 배지의 severity 유형이에요. |
| ariaLabel | string | - | 현재 엘리먼트의 autocomplete 속성이 될 문자열을 정의할 때 사용해요. |
| autofocus | boolean | false | 설정하면 컴포넌트가 로드될 때 자동으로 포커스를 받아요. |
| iconPos | ButtonIconPosition | left | 아이콘의 위치예요. |
| icon | string | - | 아이콘의 이름이에요. |
| label | string | - | 버튼의 텍스트예요. |
| loading | boolean | false | 버튼이 로딩 상태인지 여부예요. |
| loadingIcon | string | - | 로딩 상태에서 표시할 아이콘이에요. |
| severity | ButtonSeverity | - | 버튼의 스타일을 정의해요. |
| buttonProps | ButtonProps | - | ButtonProps의 모든 프로퍼티를 Button 컴포넌트에 전달할 때 사용해요. |
| fluid | InputSignalWithTransform<boolean, unknown> | undefined | 활성화하면 컨테이너 너비의 100%를 차지해요. |
이벤트
| Name | Parameters | Description |
|---|---|---|
| onClick | event: MouseEvent | 버튼이 클릭됐을 때 실행되는 콜백이에요. 이 이벤트는 컴포넌트와 함께 사용하기 위한 거예요. 일반 엘리먼트를 사용할 때는 (click)을 사용하세요. |
| onFocus | event: FocusEvent | 버튼이 포커스를 받을 때 실행되는 콜백이에요. 이 이벤트는 컴포넌트와 함께 사용하기 위한 거예요. 일반 엘리먼트를 사용할 때는 (focus)를 사용하세요. |
| onBlur | event: FocusEvent | 버튼이 포커스를 잃을 때 실행되는 콜백이에요. 이 이벤트는 컴포넌트와 함께 사용하기 위한 거예요. 일반 엘리먼트를 사용할 때는 (blur)를 사용하세요. |
템플릿
| Name | Type | Description |
|---|---|---|
| content | TemplateRef | 커스텀 콘텐츠 템플릿이에요. |
| loadingicon | TemplateRef | 커스텀 로딩 아이콘 템플릿이에요. |
| icon | TemplateRef | 커스텀 아이콘 템플릿이에요. |
Pass Through 옵션
| Name | Type | Description |
|---|---|---|
| host | PassThroughOption<HTMLElement, I> | 호스트 DOM 엘리먼트에 속성을 전달할 때 사용해요. |
| root | PassThroughOption<HTMLButtonElement, I> | 루트 DOM 엘리먼트에 속성을 전달할 때 사용해요. |
| loadingIcon | PassThroughOption<HTMLSpanElement, I> | 로딩 아이콘의 DOM 엘리먼트에 속성을 전달할 때 사용해요. |
| icon | PassThroughOption<HTMLSpanElement, I> | 아이콘의 DOM 엘리먼트에 속성을 전달할 때 사용해요. |
| label | PassThroughOption<HTMLSpanElement, I> | 라벨의 DOM 엘리먼트에 속성을 전달할 때 사용해요. |
| pcBadge | BadgePassThrough | Badge 컴포넌트에 속성을 전달할 때 사용해요. |
테마
CSS 클래스
| Class | Description |
|---|---|
| p-button | 루트 엘리먼트의 클래스 이름이에요. |
| p-button-loading-icon | 로딩 아이콘 엘리먼트의 클래스 이름이에요. |
| p-button-icon | 아이콘 엘리먼트의 클래스 이름이에요. |
| p-button-label | 라벨 엘리먼트의 클래스 이름이에요. |
디자인 토큰
| 토큰 | CSS 변수 | 설명 |
|---|---|---|
| button.border.radius | --p-button-border-radius | 루트의 테두리 반경 |
| button.rounded.border.radius | --p-button-rounded-border-radius | 루트의 Rounded 테두리 반경 |
| button.gap | --p-button-gap | 루트의 간격 |
| button.padding.x | --p-button-padding-x | 루트의 가로 패딩 |
| button.padding.y | --p-button-padding-y | 루트의 세로 패딩 |
| button.icon.only.width | --p-button-icon-only-width | 루트의 아이콘 전용 너비 |
| button.sm.font.size | --p-button-sm-font-size | 루트의 Sm 폰트 크기 |
| button.sm.padding.x | --p-button-sm-padding-x | 루트의 Sm 가로 패딩 |
| button.sm.padding.y | --p-button-sm-padding-y | 루트의 Sm 세로 패딩 |
| button.sm.icon.only.width | --p-button-sm-icon-only-width | 루트의 Sm 아이콘 전용 너비 |
| button.lg.font.size | --p-button-lg-font-size | 루트의 Lg 폰트 크기 |
| button.lg.padding.x | --p-button-lg-padding-x | 루트의 Lg 가로 패딩 |
| button.lg.padding.y | --p-button-lg-padding-y | 루트의 Lg 세로 패딩 |
| button.lg.icon.only.width | --p-button-lg-icon-only-width | 루트의 Lg 아이콘 전용 너비 |
| button.label.font.weight | --p-button-label-font-weight | 루트의 라벨 폰트 굵기 |
| button.raised.shadow | --p-button-raised-shadow | 루트의 Raised 그림자 |
| button.focus.ring.width | --p-button-focus-ring-width | 루트의 포커스 링 너비 |
| button.focus.ring.style | --p-button-focus-ring-style | 루트의 포커스 링 스타일 |
| button.focus.ring.offset | --p-button-focus-ring-offset | 루트의 포커스 링 오프셋 |
| button.badge.size | --p-button-badge-size | 루트의 배지 크기 |
| button.transition.duration | --p-button-transition-duration | 루트의 트랜지션 지속 시간 |
| button.primary.background | --p-button-primary-background | 루트의 Primary 배경 |
| button.primary.hover.background | --p-button-primary-hover-background | 루트의 Primary 호버 배경 |
| button.primary.active.background | --p-button-primary-active-background | 루트의 Primary 활성 배경 |
| button.primary.border.color | --p-button-primary-border-color | 루트의 Primary 테두리 색상 |
| button.primary.hover.border.color | --p-button-primary-hover-border-color | 루트의 Primary 호버 테두리 색상 |
| button.primary.active.border.color | --p-button-primary-active-border-color | 루트의 Primary 활성 테두리 색상 |
| button.primary.color | --p-button-primary-color | 루트의 Primary 색상 |
| button.primary.hover.color | --p-button-primary-hover-color | 루트의 Primary 호버 색상 |
| button.primary.active.color | --p-button-primary-active-color | 루트의 Primary 활성 색상 |
| button.primary.focus.ring.color | --p-button-primary-focus-ring-color | 루트의 Primary 포커스 링 색상 |
| button.primary.focus.ring.shadow | --p-button-primary-focus-ring-shadow | 루트의 Primary 포커스 링 그림자 |
| button.secondary.background | --p-button-secondary-background | 루트의 Secondary 배경 |
| button.secondary.hover.background | --p-button-secondary-hover-background | 루트의 Secondary 호버 배경 |
| button.secondary.active.background | --p-button-secondary-active-background | 루트의 Secondary 활성 배경 |
| button.secondary.border.color | --p-button-secondary-border-color | 루트의 Secondary 테두리 색상 |
| button.secondary.hover.border.color | --p-button-secondary-hover-border-color | 루트의 Secondary 호버 테두리 색상 |
| button.secondary.active.border.color | --p-button-secondary-active-border-color | 루트의 Secondary 활성 테두리 색상 |
| button.secondary.color | --p-button-secondary-color | 루트의 Secondary 색상 |
| button.secondary.hover.color | --p-button-secondary-hover-color | 루트의 Secondary 호버 색상 |
| button.secondary.active.color | --p-button-secondary-active-color | 루트의 Secondary 활성 색상 |
| button.secondary.focus.ring.color | --p-button-secondary-focus-ring-color | 루트의 Secondary 포커스 링 색상 |
| button.secondary.focus.ring.shadow | --p-button-secondary-focus-ring-shadow | 루트의 Secondary 포커스 링 그림자 |
| button.info.background | --p-button-info-background | 루트의 Info 배경 |
| button.info.hover.background | --p-button-info-hover-background | 루트의 Info 호버 배경 |
| button.info.active.background | --p-button-info-active-background | 루트의 Info 활성 배경 |
| button.info.border.color | --p-button-info-border-color | 루트의 Info 테두리 색상 |
| button.info.hover.border.color | --p-button-info-hover-border-color | 루트의 Info 호버 테두리 색상 |
| button.info.active.border.color | --p-button-info-active-border-color | 루트의 Info 활성 테두리 색상 |
| button.info.color | --p-button-info-color | 루트의 Info 색상 |
| button.info.hover.color | --p-button-info-hover-color | 루트의 Info 호버 색상 |
| button.info.active.color | --p-button-info-active-color | 루트의 Info 활성 색상 |
| button.info.focus.ring.color | --p-button-info-focus-ring-color | 루트의 Info 포커스 링 색상 |
| button.info.focus.ring.shadow | --p-button-info-focus-ring-shadow | 루트의 Info 포커스 링 그림자 |
| button.success.background | --p-button-success-background | 루트의 Success 배경 |
| button.success.hover.background | --p-button-success-hover-background | 루트의 Success 호버 배경 |
| button.success.active.background | --p-button-success-active-background | 루트의 Success 활성 배경 |
| button.success.border.color | --p-button-success-border-color | 루트의 Success 테두리 색상 |
| button.success.hover.border.color | --p-button-success-hover-border-color | 루트의 Success 호버 테두리 색상 |
| button.success.active.border.color | --p-button-success-active-border-color | 루트의 Success 활성 테두리 색상 |
| button.success.color | --p-button-success-color | 루트의 Success 색상 |
| button.success.hover.color | --p-button-success-hover-color | 루트의 Success 호버 색상 |
| button.success.active.color | --p-button-success-active-color | 루트의 Success 활성 색상 |
| button.success.focus.ring.color | --p-button-success-focus-ring-color | 루트의 Success 포커스 링 색상 |
| button.success.focus.ring.shadow | --p-button-success-focus-ring-shadow | 루트의 Success 포커스 링 그림자 |
| button.warn.background | --p-button-warn-background | 루트의 Warn 배경 |
| button.warn.hover.background | --p-button-warn-hover-background | 루트의 Warn 호버 배경 |
| button.warn.active.background | --p-button-warn-active-background | 루트의 Warn 활성 배경 |
| button.warn.border.color | --p-button-warn-border-color | 루트의 Warn 테두리 색상 |
| button.warn.hover.border.color | --p-button-warn-hover-border-color | 루트의 Warn 호버 테두리 색상 |
| button.warn.active.border.color | --p-button-warn-active-border-color | 루트의 Warn 활성 테두리 색상 |
| button.warn.color | --p-button-warn-color | 루트의 Warn 색상 |
| button.warn.hover.color | --p-button-warn-hover-color | 루트의 Warn 호버 색상 |
| button.warn.active.color | --p-button-warn-active-color | 루트의 Warn 활성 색상 |
| button.warn.focus.ring.color | --p-button-warn-focus-ring-color | 루트의 Warn 포커스 링 색상 |
| button.warn.focus.ring.shadow | --p-button-warn-focus-ring-shadow | 루트의 Warn 포커스 링 그림자 |
| button.help.background | --p-button-help-background | 루트의 Help 배경 |
| button.help.hover.background | --p-button-help-hover-background | 루트의 Help 호버 배경 |
| button.help.active.background | --p-button-help-active-background | 루트의 Help 활성 배경 |
| button.help.border.color | --p-button-help-border-color | 루트의 Help 테두리 색상 |
| button.help.hover.border.color | --p-button-help-hover-border-color | 루트의 Help 호버 테두리 색상 |
| button.help.active.border.color | --p-button-help-active-border-color | 루트의 Help 활성 테두리 색상 |
| button.help.color | --p-button-help-color | 루트의 Help 색상 |
| button.help.hover.color | --p-button-help-hover-color | 루트의 Help 호버 색상 |
| button.help.active.color | --p-button-help-active-color | 루트의 Help 활성 색상 |
| button.help.focus.ring.color | --p-button-help-focus-ring-color | 루트의 Help 포커스 링 색상 |
| button.help.focus.ring.shadow | --p-button-help-focus-ring-shadow | 루트의 Help 포커스 링 그림자 |
| button.danger.background | --p-button-danger-background | 루트의 Danger 배경 |
| button.danger.hover.background | --p-button-danger-hover-background | 루트의 Danger 호버 배경 |
| button.danger.active.background | --p-button-danger-active-background | 루트의 Danger 활성 배경 |
| button.danger.border.color | --p-button-danger-border-color | 루트의 Danger 테두리 색상 |
| button.danger.hover.border.color | --p-button-danger-hover-border-color | 루트의 Danger 호버 테두리 색상 |
| button.danger.active.border.color | --p-button-danger-active-border-color | 루트의 Danger 활성 테두리 색상 |
| button.danger.color | --p-button-danger-color | 루트의 Danger 색상 |
| button.danger.hover.color | --p-button-danger-hover-color | 루트의 Danger 호버 색상 |
| button.danger.active.color | --p-button-danger-active-color | 루트의 Danger 활성 색상 |
| button.danger.focus.ring.color | --p-button-danger-focus-ring-color | 루트의 Danger 포커스 링 색상 |
| button.danger.focus.ring.shadow | --p-button-danger-focus-ring-shadow | 루트의 Danger 포커스 링 그림자 |
| button.contrast.background | --p-button-contrast-background | 루트의 Contrast 배경 |
| button.contrast.hover.background | --p-button-contrast-hover-background | 루트의 Contrast 호버 배경 |
| button.contrast.active.background | --p-button-contrast-active-background | 루트의 Contrast 활성 배경 |
| button.contrast.border.color | --p-button-contrast-border-color | 루트의 Contrast 테두리 색상 |
| button.contrast.hover.border.color | --p-button-contrast-hover-border-color | 루트의 Contrast 호버 테두리 색상 |
| button.contrast.active.border.color | --p-button-contrast-active-border-color | 루트의 Contrast 활성 테두리 색상 |
| button.contrast.color | --p-button-contrast-color | 루트의 Contrast 색상 |
| button.contrast.hover.color | --p-button-contrast-hover-color | 루트의 Contrast 호버 색상 |
| button.contrast.active.color | --p-button-contrast-active-color | 루트의 Contrast 활성 색상 |
| button.contrast.focus.ring.color | --p-button-contrast-focus-ring-color | 루트의 Contrast 포커스 링 색상 |
| button.contrast.focus.ring.shadow | --p-button-contrast-focus-ring-shadow | 루트의 Contrast 포커스 링 그림자 |
| button.outlined.primary.hover.background | --p-button-outlined-primary-hover-background | Outlined의 Primary 호버 배경 |
| button.outlined.primary.active.background | --p-button-outlined-primary-active-background | Outlined의 Primary 활성 배경 |
| button.outlined.primary.border.color | --p-button-outlined-primary-border-color | Outlined의 Primary 테두리 색상 |
| button.outlined.primary.color | --p-button-outlined-primary-color | Outlined의 Primary 색상 |
| button.outlined.secondary.hover.background | --p-button-outlined-secondary-hover-background | Outlined의 Secondary 호버 배경 |
| button.outlined.secondary.active.background | --p-button-outlined-secondary-active-background | Outlined의 Secondary 활성 배경 |
| button.outlined.secondary.border.color | --p-button-outlined-secondary-border-color | Outlined의 Secondary 테두리 색상 |
| button.outlined.secondary.color | --p-button-outlined-secondary-color | Outlined의 Secondary 색상 |
| button.outlined.success.hover.background | --p-button-outlined-success-hover-background | Outlined의 Success 호버 배경 |
| button.outlined.success.active.background | --p-button-outlined-success-active-background | Outlined의 Success 활성 배경 |
| button.outlined.success.border.color | --p-button-outlined-success-border-color | Outlined의 Success 테두리 색상 |
| button.outlined.success.color | --p-button-outlined-success-color | Outlined의 Success 색상 |
| button.outlined.info.hover.background | --p-button-outlined-info-hover-background | Outlined의 Info 호버 배경 |
| button.outlined.info.active.background | --p-button-outlined-info-active-background | Outlined의 Info 활성 배경 |
| button.outlined.info.border.color | --p-button-outlined-info-border-color | Outlined의 Info 테두리 색상 |
| button.outlined.info.color | --p-button-outlined-info-color | Outlined의 Info 색상 |
| button.outlined.warn.hover.background | --p-button-outlined-warn-hover-background | Outlined의 Warn 호버 배경 |
| button.outlined.warn.active.background | --p-button-outlined-warn-active-background | Outlined의 Warn 활성 배경 |
| button.outlined.warn.border.color | --p-button-outlined-warn-border-color | Outlined의 Warn 테두리 색상 |
| button.outlined.warn.color | --p-button-outlined-warn-color | Outlined의 Warn 색상 |
| button.outlined.help.hover.background | --p-button-outlined-help-hover-background | Outlined의 Help 호버 배경 |
| button.outlined.help.active.background | --p-button-outlined-help-active-background | Outlined의 Help 활성 배경 |
| button.outlined.help.border.color | --p-button-outlined-help-border-color | Outlined의 Help 테두리 색상 |
| button.outlined.help.color | --p-button-outlined-help-color | Outlined의 Help 색상 |
| button.outlined.danger.hover.background | --p-button-outlined-danger-hover-background | Outlined의 Danger 호버 배경 |
| button.outlined.danger.active.background | --p-button-outlined-danger-active-background | Outlined의 Danger 활성 배경 |
| button.outlined.danger.border.color | --p-button-outlined-danger-border-color | Outlined의 Danger 테두리 색상 |
| button.outlined.danger.color | --p-button-outlined-danger-color | Outlined의 Danger 색상 |
| button.outlined.contrast.hover.background | --p-button-outlined-contrast-hover-background | Outlined의 Contrast 호버 배경 |
| button.outlined.contrast.active.background | --p-button-outlined-contrast-active-background | Outlined의 Contrast 활성 배경 |
| button.outlined.contrast.border.color | --p-button-outlined-contrast-border-color | Outlined의 Contrast 테두리 색상 |
| button.outlined.contrast.color | --p-button-outlined-contrast-color | Outlined의 Contrast 색상 |
| button.outlined.plain.hover.background | --p-button-outlined-plain-hover-background | Outlined의 Plain 호버 배경 |
| button.outlined.plain.active.background | --p-button-outlined-plain-active-background | Outlined의 Plain 활성 배경 |
| button.outlined.plain.border.color | --p-button-outlined-plain-border-color | Outlined의 Plain 테두리 색상 |
| button.outlined.plain.color | --p-button-outlined-plain-color | Outlined의 Plain 색상 |
| button.text.primary.hover.background | --p-button-text-primary-hover-background | Text의 Primary 호버 배경 |
| button.text.primary.active.background | --p-button-text-primary-active-background | Text의 Primary 활성 배경 |
| button.text.primary.color | --p-button-text-primary-color | Text의 Primary 색상 |
| button.text.secondary.hover.background | --p-button-text-secondary-hover-background | Text의 Secondary 호버 배경 |
| button.text.secondary.active.background | --p-button-text-secondary-active-background | Text의 Secondary 활성 배경 |
| button.text.secondary.color | --p-button-text-secondary-color | Text의 Secondary 색상 |
| button.text.success.hover.background | --p-button-text-success-hover-background | Text의 Success 호버 배경 |
| button.text.success.active.background | --p-button-text-success-active-background | Text의 Success 활성 배경 |
| button.text.success.color | --p-button-text-success-color | Text의 Success 색상 |
| button.text.info.hover.background | --p-button-text-info-hover-background | Text의 Info 호버 배경 |
| button.text.info.active.background | --p-button-text-info-active-background | Text의 Info 활성 배경 |
| button.text.info.color | --p-button-text-info-color | Text의 Info 색상 |
| button.text.warn.hover.background | --p-button-text-warn-hover-background | Text의 Warn 호버 배경 |
| button.text.warn.active.background | --p-button-text-warn-active-background | Text의 Warn 활성 배경 |
| button.text.warn.color | --p-button-text-warn-color | Text의 Warn 색상 |
| button.text.help.hover.background | --p-button-text-help-hover-background | Text의 Help 호버 배경 |
| button.text.help.active.background | --p-button-text-help-active-background | Text의 Help 활성 배경 |
| button.text.help.color | --p-button-text-help-color | Text의 Help 색상 |
| button.text.danger.hover.background | --p-button-text-danger-hover-background | Text의 Danger 호버 배경 |
| button.text.danger.active.background | --p-button-text-danger-active-background | Text의 Danger 활성 배경 |
| button.text.danger.color | --p-button-text-danger-color | Text의 Danger 색상 |
| button.text.contrast.hover.background | --p-button-text-contrast-hover-background | Text의 Contrast 호버 배경 |
| button.text.contrast.active.background | --p-button-text-contrast-active-background | Text의 Contrast 활성 배경 |
| button.text.contrast.color | --p-button-text-contrast-color | Text의 Contrast 색상 |
| button.text.plain.hover.background | --p-button-text-plain-hover-background | Text의 Plain 호버 배경 |
| button.text.plain.active.background | --p-button-text-plain-active-background | Text의 Plain 활성 배경 |
| button.text.plain.color | --p-button-text-plain-color | Text의 Plain 색상 |
| button.link.color | --p-button-link-color | Link의 색상 |
| button.link.hover.color | --p-button-link-hover-color | Link의 호버 색상 |
| button.link.active.color | --p-button-link-active-color | Link의 활성 색상 |
더 알아보기 (Learn more)
이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.