: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
import type { ReactElement, ReactNode } from 'react'
import Svg from 'react-native-svg'
import { useColors } from '../theme'
interface StrokeIconProps {
size: number
color?: string
strokeWidth: number
viewBox?: string
width?: number
height?: number
children: ReactNode
}
export function StrokeIcon({
size,
color,
strokeWidth,
viewBox = '0 0 24 24',
width,
height,
children,
}: StrokeIconProps): ReactElement {
const colors = useColors()
return (
<Svg
width={width ?? size}
height={height ?? size}
viewBox={viewBox}
fill="none"
stroke={color ?? colors.ink}
strokeWidth={strokeWidth}
strokeLinecap="round"
strokeLinejoin="round"
>
{children}
</Svg>
)
}