useToast사용법 #60
mtm-git1018
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
useToast( type,msg )
type = 'success' | 'warn' | 'error' | 'info'
사용시 useToast(알림타입,알림문구) 를 매개변수로 설정하면 됩니다.
기본적인 디자인은 그대로 두고 알림타입에 따른 색만 변경했는데
색은 css에 설정해둔 theme를 기준으로 하였고 전부 300번대 번호를 사용하였습니다.
테스트 해보니까 숫자가 높아질 수록 원색느낌이 강해져서 우선 명도대비가 괜찮아 보이면서 너무 안쎄보이는 색을 사용했는데
논의가 필요할 것 같습니다.
Beta Was this translation helpful? Give feedback.
All reactions