carbon-custom-elements
Version:
A Carbon Design System variant that's as easy to use as native HTML elements, with no framework tax, no framework silo.
59 lines (49 loc) • 1.25 kB
TypeScript
/**
* @license
*
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import { Component } from 'react';
interface ComponentProps {
/**
* An assistive text for screen reader to advice a DOM node is for code snippet.
*/
codeAssistiveText?: string;
/**
* The context content for the collapse button.
*/
collapseButtonText?: string;
/**
* The color scheme.
*/
colorScheme?: string;
/**
* An assistive text for screen reader to announce, telling that the button copies the content to the clipboard.
*/
copyButtonAssistiveText?: string;
/**
* The feedback text for the copy button.
*/
copyButtonFeedbackText?: string;
/**
* The number in milliseconds to determine how long the tooltip for the copy button should remain.
*/
copyButtonFeedbackTimeout?: number;
/**
* The context content for the expand button.
*/
expandButtonText?: string;
/**
* The type of code snippet.
*/
type?: string;
}
/**
* Basic code snippet.
* @element bx-code-snippet
*/
declare class BXCodeSnippet extends Component<ComponentProps> {}
export default BXCodeSnippet;