UNPKG

@gravity-ui/uikit

Version:

Gravity UI base styling and components

13 lines (12 loc) 672 B
import { jsx as _jsx } from "react/jsx-runtime"; import { ChevronDown } from '@gravity-ui/icons'; import { Icon } from "../Icon/index.js"; import { useDefaultProps } from "../theme/useDefaultProps.js"; import { block } from "../utils/cn.js"; import "./ArrowToggle.css"; const b = block('arrow-toggle'); export function ArrowToggle(rawProps) { const { size = 16, direction = 'bottom', className, qa, } = useDefaultProps('ArrowToggle', rawProps); return (_jsx("span", { style: { width: size, height: size }, className: b({ direction }, className), "data-qa": qa, children: _jsx(Icon, { data: ChevronDown, size: size }) })); } //# sourceMappingURL=ArrowToggle.js.map