diff --git a/src/components/common/skeleton.tsx b/src/components/common/skeleton.tsx new file mode 100644 index 0000000..2c9b30b --- /dev/null +++ b/src/components/common/skeleton.tsx @@ -0,0 +1,20 @@ +import { css } from '@emotion/react' + +type SkeletonProps = { + height?: number + width?: string | number +} + +export function Skeleton({ height = 14, width = '100%' }: SkeletonProps) { + return ( + css` + display: inline-block; + width: ${width}; + height: ${height}px; + border-radius: ${t.radius.sm}px; + background: ${t.color.border}; + `} + /> + ) +} diff --git a/src/components/stepper/step-footer.tsx b/src/components/stepper/step-footer.tsx index c30a8de..f67ef6d 100644 --- a/src/components/stepper/step-footer.tsx +++ b/src/components/stepper/step-footer.tsx @@ -1,5 +1,5 @@ import { Button } from '@/components/common/button' -import { footerBar } from '@/styles/form-styles' +import { footerStyle } from '@/styles/step-styles' import type { StepActions, StepState } from '@/features/book-form/hooks/use-multi-step-form' @@ -19,7 +19,7 @@ export function StepFooter({ submitLabel = '제출', }: StepFooterProps) { return ( -