Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 알고리즘
- HTML
- styled-components
- ionic react
- react
- 내일배움카드
- next.js 빌드 오류
- 스파르타코딩클럽 후기
- 바이트디그리
- 프로그래밍기초
- react-native
- 패스트캠퍼스
- ionic-react
- styled components
- 스파르타코딩클럽
- 프로그래밍첫걸음시작하기
- React Native
- ionic
- 부트캠프
- typescript
- CSS
- Algorithm
- PYTHON
- K디지털크레딧
- Firebase
- 항해99
- mongodb
- spartacodingclub
- javascript
- 프로그래머스
Archives
- Today
- Total
bravo my life!
[Ionic-React] button UI 구현하기 본문
728x90
1. 개요
ionic-react로 버튼을 만들었는데, 버튼ui의 속성들을 하나하나 구현하고 어떤 모양을 가지고 있는지 확인해 보았다.
2. 코드 상세
<IonContent className="ion-padding">
<IonText>
<h3>1. expand 속성</h3>
</IonText>
<IonButton color="primary">expand="default"</IonButton>
<IonButton expand="full" color="primary">
expand="full"
</IonButton>
<IonButton expand="block" color="primary">
expand="block"
</IonButton>
<IonText>
<h3>2. fill 속성</h3>
</IonText>
<IonButton color="primary">fill="default"</IonButton>
<IonButton fill="clear" color="primary">
fill="clear"
</IonButton>
<IonButton fill="outline" color="primary">
fill="outline"
</IonButton>
<IonButton fill="solid" color="primary">
fill="solid"
</IonButton>
<IonText>
<h3>3. size 속성</h3>
</IonText>
<IonButton color="primary" size="small">
size="small"
</IonButton>
<IonButton color="primary" size="default">
size="default"
</IonButton>
<IonButton color="primary" size="large">
size="large"
</IonButton>
<IonText>
<h3>4. disabled 속성</h3>
</IonText>
<IonButton color="primary" disabled>
disabled
</IonButton>
<IonText>
<h3>5. mode 속성</h3>
</IonText>
<IonButton color="primary" mode="ios">
mode="ios"
</IonButton>
<IonButton color="primary" mode="md">
mode="md"
</IonButton>
<IonText>
<h3>6. shape 속성</h3>
</IonText>
<IonButton color="primary" shape="round">
shape="round"
</IonButton>
<IonText>
<h3>7. strong 속성</h3>
</IonText>
<IonButton color="primary" strong>
strong
</IonButton>
<IonText>
<h3>8. slot 속성</h3>
</IonText>
<IonButton color="primary">
<IonIcon slot="" icon={star}></IonIcon>
slot=""
</IonButton>
<IonButton color="primary">
<IonIcon slot="end" icon={star}></IonIcon>
slot="end"
</IonButton>
<IonButton color="primary">
<IonIcon slot="icon-only" icon={star}></IonIcon>
slot="icon-only"
</IonButton>
<IonButton color="primary">
<IonIcon slot="start" icon={star}></IonIcon>
slot="start"
</IonButton>
</IonContent>
아래는 코드의 결과물이다.
구현하면서 느꼈던 점은 ionic-react의 ui 구성은 MUI와 비슷하게 사용이 가능하다는 점이다.
스타일부분도 글로벌로 선언해 사용이 가능한데 좀 더 파고들 여지가 있어 보인다. 공부하자.
'Framework || Library > Ionic-React' 카테고리의 다른 글
[Ionic-React] Routing 하기 (0) | 2022.07.09 |
---|---|
[Ionic-React] input UI 구현하기 (0) | 2022.07.08 |
[Ionic-React] slide UI 구현하기 (0) | 2022.07.07 |
[Ionic-React] Array와 map으로 list를 생성하기 (0) | 2022.07.06 |
[Ionic-React] 프로젝트 기본 구조 (0) | 2022.07.06 |