diff --git a/packages/module/patternfly-docs/content/examples/DeleteModal.md b/packages/module/patternfly-docs/content/examples/DeleteModal/DeleteModal.md similarity index 100% rename from packages/module/patternfly-docs/content/examples/DeleteModal.md rename to packages/module/patternfly-docs/content/examples/DeleteModal/DeleteModal.md diff --git a/packages/module/patternfly-docs/content/examples/DeleteModalBasic.tsx b/packages/module/patternfly-docs/content/examples/DeleteModal/DeleteModalBasic.tsx similarity index 100% rename from packages/module/patternfly-docs/content/examples/DeleteModalBasic.tsx rename to packages/module/patternfly-docs/content/examples/DeleteModal/DeleteModalBasic.tsx diff --git a/packages/module/patternfly-docs/content/examples/TruncatedText/TruncatedText.md b/packages/module/patternfly-docs/content/examples/TruncatedText/TruncatedText.md new file mode 100644 index 0000000..c236fe6 --- /dev/null +++ b/packages/module/patternfly-docs/content/examples/TruncatedText/TruncatedText.md @@ -0,0 +1,23 @@ +--- +# Sidenav top-level section +# should be the same for all markdown files +section: AI-infra-ui-components +# Sidenav secondary level section +# should be the same for all markdown files +id: TruncatedText +# Tab (react | react-demos | html | html-demos | design-guidelines | accessibility) +source: react +# If you use typescript, the name of the interface to display props for +# These are found through the sourceProps function provided in patternfly-docs.source.js +propComponents: ['TruncatedText'] +--- + +import { TruncatedText } from "@patternfly/ai-infra-ui-components"; + +Note: this component documents the API and enhances the [existing TruncatedText](https://github.com/opendatahub-io/odh-dashboard/blob/main/frontend/src/components/TruncatedText.tsx) component from odh-dashboard. It can be imported from [@patternfly/ai-infra-ui-components](https://www.npmjs.com/package/@patternfly/AI-infra-ui-components). Alternatively, it can be used within the odh-dashboard via the import: `~/components/TruncatedText` + +### Example + +```js file="./TruncatedTextBasic.tsx" + +``` diff --git a/packages/module/patternfly-docs/content/examples/TruncatedText/TruncatedTextBasic.tsx b/packages/module/patternfly-docs/content/examples/TruncatedText/TruncatedTextBasic.tsx new file mode 100644 index 0000000..939e9b4 --- /dev/null +++ b/packages/module/patternfly-docs/content/examples/TruncatedText/TruncatedTextBasic.tsx @@ -0,0 +1,26 @@ +import React from 'react'; + +import { TruncatedText } from "@patternfly/ai-infra-ui-components"; + +export const TruncatedTextBasic: React.FunctionComponent = () => ( + <> +