UNPKG

@awsui/components-react

Version:

On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en

23 lines 1.14 kB
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 import React from 'react'; import { getAnalyticsMetadataAttribute } from '@awsui/component-toolkit/internal/analytics-metadata'; import useBaseComponent from '../internal/hooks/use-base-component'; import { applyDisplayName } from '../internal/utils/apply-display-name'; import InternalTextFilter from './internal'; const TextFilter = React.forwardRef((props, ref) => { const baseComponentProps = useBaseComponent('TextFilter', { props: { disabled: props.disabled, disableBrowserAutocorrect: props.disableBrowserAutocorrect }, }); const componentAnalyticsMetadata = { name: 'awsui.TextFilter', label: 'input', properties: { disabled: `${!!props.disabled}`, }, }; return (React.createElement(InternalTextFilter, Object.assign({}, props, baseComponentProps, { ref: ref }, getAnalyticsMetadataAttribute({ component: componentAnalyticsMetadata })))); }); applyDisplayName(TextFilter, 'TextFilter'); export default TextFilter; //# sourceMappingURL=index.js.map