본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

Float Button

원문 보기 위키 갱신

화면 한쪽에 떠 있는 동작 버튼을 만드는 컴포넌트예요. 버튼 여러 개를 하나의 그룹으로 묶어 메뉴처럼 펼쳐 보여 줄 수도 있어요. BackTop과 비슷한 역할을 하면서 외형과 인터랙션이 더 풍부하고, 2.38.0부터 사용할 수 있어요.

출처: 문서

본문

BackTop과 비슷하지만 외형적인 완성도와 인터랙션이 더 풍부해요.

2.38.0부터 사용할 수 있어요.

Demos

basic.vue
badge.vue
tooltip.vue
custom.vue
group.vue
menu.vue

API

FloatButton Props

이름 타입 기본값 설명 버전
bottom number | string 40 버튼 그룹의 CSS bottom 속성. 2.38.0
height number | string 40 버튼 그룹의 CSS height 속성. 2.38.0
left number | string undefined 버튼 그룹의 CSS left 속성. 2.38.0
menu-trigger 'click' | 'hover' undefined 서브메뉴를 표시하는 트리거 동작. 2.38.0
position 'relative' | 'absolute' | 'fixed' 'fixed' 버튼 그룹의 CSS position 속성. 2.38.0
right number | string undefined 버튼 그룹의 CSS right 속성. 2.38.0
shape 'circle' | 'square' 'circle' 버튼의 모양. 2.38.0
show-menu boolean undefined 버튼의 서브메뉴 표시 여부. 2.38.0
top number | string undefined 버튼 그룹의 CSS top 속성. 2.38.0
type 'default' | 'primary' 'default' 버튼의 타입. 2.38.0
width number | string undefined 2.38.0
on-update:show-menu (value: boolean) => void undefined 메뉴가 열리거나 닫힐 때 호출되는 콜백. 2.38.0

FloatButtonGroup Props

이름 타입 기본값 설명 버전
bottom number | string undefined 버튼 그룹의 CSS bottom 속성. 2.38.0
left number | string undefined 버튼 그룹의 CSS left 속성. 2.38.0
position 'relative' | 'absolute' | 'fixed' 'fixed' 버튼 그룹의 CSS position 속성. 2.38.0
right number | string undefined 버튼 그룹의 CSS right 속성. 2.38.0
shape 'circle' | 'square' 'circle' 버튼 그룹의 모양. 2.38.0
top number | string undefined 버튼 그룹의 CSS top 속성. 2.38.0

FloatButton Slots

이름 파라미터 설명 버전
description () 버튼의 설명. 2.38.0
menu () 플로트 버튼의 서브메뉴. 2.38.0

더 알아보기 (Learn more)

BackTop 컴포넌트 문서도 함께 참고하면 좋아요. 나머지 공통 속성은 Popover 문서에서 확인할 수 있어요.