diff --git a/docs/docs/contributor/frontend/frontend.mdx b/docs/docs/contributor/frontend/frontend.mdx index 47a071768..1069f4000 100644 --- a/docs/docs/contributor/frontend/frontend.mdx +++ b/docs/docs/contributor/frontend/frontend.mdx @@ -1,4 +1,5 @@ --- +id: frontend title: Frontend Development displayed_sidebar: frontendSidebar sidebar_position: 0 diff --git a/docs/docs/contributor/frontend/ui-components/display/_category_.json b/docs/docs/contributor/frontend/ui-components/display/_category_.json index c461eded7..02fc981b5 100644 --- a/docs/docs/contributor/frontend/ui-components/display/_category_.json +++ b/docs/docs/contributor/frontend/ui-components/display/_category_.json @@ -1,9 +1,9 @@ { "label": "Display", - "position": 0, + "position": 1, "collapsible": true, - "collapsed": true, + "collapsed": false, "customProps": { - "icon": "TbForms" + "icon": "TbAppWindow" } } diff --git a/docs/docs/contributor/frontend/ui-components/display/app-tooltip.mdx b/docs/docs/contributor/frontend/ui-components/display/app-tooltip.mdx new file mode 100644 index 000000000..3ad04432d --- /dev/null +++ b/docs/docs/contributor/frontend/ui-components/display/app-tooltip.mdx @@ -0,0 +1,139 @@ +--- +title: App Tooltip +sidebar_position: 6 +sidebar_custom_props: + icon: TbTooltip +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; +import appTooltipCode from '!!raw-loader!@site/src/ui/display/appTooltipCode.js' +import overflowingTextWithTooltipCode from '!!raw-loader!@site/src/ui/display/overflowingTextWithTooltipCode.js' +import { SandpackEditor} from '@site/src/ui/SandpackEditor' + +A brief message that displays additional information when a user interacts with an element. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PropsTypeDescription
classNamestringOptional CSS class for additional styling
anchorSelectCSS selectorSelector for the tooltip anchor (the element that triggers the tooltip)
contentstringThe content you want to display within the tooltip
delayHidenumberThe delay in seconds before hiding the tooltip after the cursor leaves the anchor
offsetnumberThe offset in pixels for positioning the tooltip
noArrowbooleanIf `true`, hides the arrow on the tooltip
isOpenbooleanIf `true`, the tooltip is open by default
place`PlacesType` string from `react-tooltip`Specifies the placement of the tooltip. Values include `bottom`, `left`, `right`, `top`, `top-start`, `top-end`, `right-start`, `right-end`, `bottom-start`, `bottom-end`, `left-start`, and `left-end`
positionStrategy`PositionStrategy` string from `react-tooltip`Position strategy for the tooltip. Has two values: `absolute` and `fixed`
+ +
+ + +
+ +## Overflowing Text with Tooltip + +Handles overflowing text and displays a tooltip when the text overflows. + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PropsTypeDescription
textstringThe content you want to display in the overflowing text area
+ +
+ +
\ No newline at end of file diff --git a/docs/docs/contributor/frontend/ui-components/display/checkmark.mdx b/docs/docs/contributor/frontend/ui-components/display/checkmark.mdx index ccb3cb8b7..b4c8d926c 100644 --- a/docs/docs/contributor/frontend/ui-components/display/checkmark.mdx +++ b/docs/docs/contributor/frontend/ui-components/display/checkmark.mdx @@ -1,18 +1,95 @@ --- title: Checkmark sidebar_position: 1 +sidebar_custom_props: + icon: TbCheck --- +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; +import checkmarkCode from '!!raw-loader!@site/src/ui/display/checkmarkCode.js' +import animatedCheckmarkCode from '!!raw-loader!@site/src/ui/display/animatedCheckmarkCode.js' import { SandpackEditor} from '@site/src/ui/SandpackEditor' +Represents a successful or completed action. + + + + { - return <>