Skip to content

Phone

The Phone component is a visual container that simulates the appearance of a mobile device, making it ideal for previews, mockups, or showcasing responsive content.

  • Device simulation: Displays content as if on a smartphone.
  • Composable design: Supports Phone.Notch and custom content.
  • Flexible layout: Works with any children content inside the container.
  • Presentation-ready: Perfect for demos, prototypes, or showcases.

test

PropTypeDefaultDescription
childrennodeContent rendered inside the phone frame.
classstringOptional CSS classes for styling.
stylestringInline styles to adjust layout or appearance.
PropTypeDefaultDescription
classstringOptional CSS classes for notch styling.
stylestringInline styles for custom notch appearance.
  • Use Phone.Notch to mimic realistic device notches.
  • Keep content visually centered and proportionate.
  • Avoid placing interactive elements that do not scale properly.
  • Combine with other UI components to showcase responsive behavior.
  • Use for visual demos rather than production UI logic.