File tree Expand file tree Collapse file tree 4 files changed +13431
-20109
lines changed Expand file tree Collapse file tree 4 files changed +13431
-20109
lines changed Original file line number Diff line number Diff line change 1+ const code = {
2+ javascript : {
3+ code : `import Text from "@radui/ui/Text"
4+
5+ const HeadingExamples = () => (
6+ <div>
7+ <Text>Lorem ipsum</Text>
8+ </div>
9+ )`
10+ } ,
11+ css : {
12+ code : `.rad-ui-text{
13+ font-size: 16px;
14+ line-height: 24px;
15+ }
16+
17+
18+ `
19+ } ,
20+ }
21+
22+ export default code ;
Original file line number Diff line number Diff line change 1+ const PAGE_NAME = 'BADGE_DOCS'
2+ import Documentation from "@/components/layout/Documentation/Documentation"
3+
4+ import Text from '@radui/ui/Text'
5+ import SEO from "../../docsIndex"
6+ export const metadata = SEO . getMetadata ( PAGE_NAME )
7+
8+ import codeUsage from "./docs/codeUsage"
9+
10+ const TextDocs = ( ) => {
11+ return < div >
12+ < Documentation currentPage = { PAGE_NAME } title = 'Text' description = { `
13+ Text is used to display customizable text content.
14+ ` } >
15+ < Documentation . ComponentHero codeUsage = { codeUsage } >
16+ < div className = 'text-gray-50 p-5 space-y-1' >
17+ < Text > Lorem ipsum</ Text >
18+ </ div >
19+ </ Documentation . ComponentHero >
20+
21+ </ Documentation >
22+ </ div >
23+ }
24+
25+ export default TextDocs ;
Original file line number Diff line number Diff line change @@ -77,6 +77,10 @@ const sections = [
7777 title : "Heading" ,
7878 path : "/docs/components/heading"
7979 } ,
80+ {
81+ title : "Text" ,
82+ path : "/docs/components/text"
83+ } ,
8084 {
8185 title : "Kbd" ,
8286 path : "/docs/components/kbd" ,
You can’t perform that action at this time.
0 commit comments