Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 719 Bytes

Editable.mdx

File metadata and controls

32 lines (26 loc) · 719 Bytes
id title
Editable
Editable

import { PropsTable, Description, StorybookLink } from '@site/src/components';

Editable

Использование

import React from 'react';
import { Editable } from '@salutejs/plasma-web';
import { IconEdit } from '@salutejs/plasma-icons';
import { Headline1 } from '@salutejs/plasma-typo';

export function App() {
    return (
        <Editable
            icon={<IconEdit size='s' color="inherit" />}
            textComponent={Headline1}
            value="Default value"
            onChange={() => { console.log('handleChange') }}
        />
    );
}