How to use @vkontakte/vkui - 1 common examples

To help you get started, we’ve selected a few @vkontakte/vkui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github VKCOM / create-vk-mini-app / src / panels / Persik.js View on Github external
import React from 'react';
import PropTypes from 'prop-types';
import { platform, IOS } from '@vkontakte/vkui';
import Panel from '@vkontakte/vkui/dist/components/Panel/Panel';
import PanelHeader from '@vkontakte/vkui/dist/components/PanelHeader/PanelHeader';
import HeaderButton from '@vkontakte/vkui/dist/components/HeaderButton/HeaderButton';
import Icon28ChevronBack from '@vkontakte/icons/dist/28/chevron_back';
import Icon24Back from '@vkontakte/icons/dist/24/back';

import persik from '../img/persik.png';
import './Persik.css';

const osName = platform();

const Persik = props => (
				{osName === IOS ?  : }
		<img alt="Persik The Cat" src="{persik}">

Persik.propTypes = {
	id: PropTypes.string.isRequired,


VKUI library

Latest version published 13 days ago

Package Health Score

84 / 100
Full package analysis

Popular @vkontakte/vkui functions

Similar packages