Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

850 B
Raw Blame
import { ButtonPrimitive, ButtonPrimitiveProps } from 'lib/ui/Button/ButtonPrimitives'
import { Label } from 'lib/ui/Label/Label'
import { WrappingLoadingSkeleton } from 'lib/ui/WrappingLoadingSkeleton/WrappingLoadingSkeleton'

export function SceneLoadingSkeleton({ fullWidth = true }: Pick<ButtonPrimitiveProps, 'fullWidth'>): JSX.Element {
    return (
        <div className="flex flex-col gap-px">
            <WrappingLoadingSkeleton fullWidth={false}>
                <Label intent="menu" aria-hidden>
                    Some label text
                </Label>
            </WrappingLoadingSkeleton>

            <WrappingLoadingSkeleton fullWidth={fullWidth}>
                <ButtonPrimitive inert aria-hidden>
                    Loading...
                </ButtonPrimitive>
            </WrappingLoadingSkeleton>
        </div>
    )
}