UNPKG

onecart-ui

Version:

OneCart UI: Cross-platform design tokens + React & React Native components

10 lines (9 loc) 913 B
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const Vibration = ({ size = 'md', color = 'currentColor', style, }) => { const sizeMap = { xs: 16, sm: 20, md: 24, lg: 32, xl: 40 }; const iconSize = typeof size === 'number' ? size : sizeMap[size]; return (React.createElement(Svg, { width: iconSize, height: iconSize, viewBox: "0 0 24 24", fill: "none", style: style }, React.createElement(Path, { d: "M2.000 12.909H3.818V7.455H2.000V12.909ZM4.727 14.727H6.545V5.636H4.727V14.727ZM22.000 7.455V15.636H21.091V10.182H19.273ZM19.273 14.727H21.091V5.636H19.273V14.727ZM17.000 2.000H8.818C5.336 4.727 4.727 5.336 4.727 6.091V17.000C7.455 17.755 8.064 18.364 8.818 18.364H17.000C15.027 21.091 15.636 20.482 15.636 19.727V3.364C18.364 2.609 17.755 2.000 17.000 2.000ZM16.545 16.545H9.273V3.818H16.545V16.545Z", fill: color }))); }; Vibration.displayName = 'Vibration';