index
int64
0
0
repo_id
stringlengths
16
181
file_path
stringlengths
28
270
content
stringlengths
1
11.6M
__index_level_0__
int64
0
10k
0
petrpan-code/geist-org/geist-ui/lib/components
petrpan-code/geist-org/geist-ui/lib/components/mdx-widgets/hybrid-code.tsx
import React, { ReactNode, useMemo } from 'react' import { Code, CodeProps } from 'components' export type HybridCodeProps = CodeProps export const FILE_NAME_PREFIX = '// NAME:' type HybridCodeChildrenAndName = { children: ReactNode | undefined name?: string | undefined } const extractFileName = ( children: Rea...
3,000
0
petrpan-code/geist-org/geist-ui/lib/components
petrpan-code/geist-org/geist-ui/lib/components/mdx-widgets/hybrid-link.tsx
import React from 'react' import NextLink from 'next/link' import { Link, LinkProps } from 'components' import { useRouter } from 'next/router' export type HybridLinkProps = LinkProps const HybridLink: React.FC<HybridLinkProps> = ({ href = '#', children, ...props }) => { const isRelativeUrl = !/^([a-z0-9]*:|.{0})\/...
3,001
0
petrpan-code/geist-org/geist-ui/lib/components
petrpan-code/geist-org/geist-ui/lib/components/mdx-widgets/index.ts
export { default as HybridLink } from './hybrid-link' export { default as HybridCode } from './hybrid-code' export { default as MockPage } from './mock-page' export { default as Colors } from './colors' export { default as HomeCell } from './home-cell' export { default as IconsGallery } from './icons-gallery' export { ...
3,002
0
petrpan-code/geist-org/geist-ui/lib/components
petrpan-code/geist-org/geist-ui/lib/components/mdx-widgets/mock-page.tsx
import React, { useEffect, useState } from 'react' import { useTheme } from 'components' interface Props { visible: boolean onClose?: () => void } const MockPage: React.FC<React.PropsWithChildren<Props>> = ({ visible: customVisible, onClose, children, }) => { const theme = useTheme() const [visible, set...
3,003
0
petrpan-code/geist-org/geist-ui/lib/components/mdx-widgets
petrpan-code/geist-org/geist-ui/lib/components/mdx-widgets/colors/colors-data.ts
import { GeistUIThemesPalette } from 'components/themes/presets' export type ColorEnum = { [key in keyof GeistUIThemesPalette]?: string } const normal: ColorEnum = { background: 'Background', accents_1: 'Accent 1', accents_2: 'Accent 2', accents_3: 'Accent 3', accents_4: 'Accent 4', accents_5: 'Accent 5...
3,004
0
petrpan-code/geist-org/geist-ui/lib/components/mdx-widgets
petrpan-code/geist-org/geist-ui/lib/components/mdx-widgets/colors/index.tsx
import React, { useMemo } from 'react' import { useTheme, useToasts, Code, Grid, useClipboard } from 'components' import { getColorData, getCurrentColor } from './colors-data' import { GeistUIThemesPalette } from 'components/themes' interface Props { type: string } const getColorItem = ( type: string, palette: ...
3,005
0
petrpan-code/geist-org/geist-ui/lib/components/mdx-widgets
petrpan-code/geist-org/geist-ui/lib/components/mdx-widgets/icons-gallery/icons-cell.tsx
import React from 'react' import { Text, useTheme } from 'components' export const getFileName = (name: string): string => { return name.replace(/^(.)/, g => g.toLowerCase()) } export const getImportString = (name: string) => { const fileName = getFileName(name) const single = `import ${name} from '@geist-ui/ic...
3,006
0
petrpan-code/geist-org/geist-ui/lib/components/mdx-widgets
petrpan-code/geist-org/geist-ui/lib/components/mdx-widgets/icons-gallery/icons-gallery.tsx
import React, { useState } from 'react' import { Card, Input, useInput, Modal, useModal, Snippet } from 'components' import * as Icons from '@geist-ui/icons' import IconsCell, { getImportString } from './icons-cell' import { useConfigs } from 'lib/config-context' const ImportSnippet: React.FC<React.PropsWithChildren<u...
3,007
0
petrpan-code/geist-org/geist-ui/lib/components/mdx-widgets
petrpan-code/geist-org/geist-ui/lib/components/mdx-widgets/icons-gallery/index.tsx
import dynamic from 'next/dynamic' const IconsGallery = dynamic(() => import('./icons-gallery'), { ssr: false, loading: () => null, }) export default IconsGallery
3,008
0
petrpan-code/geist-org/geist-ui/lib/components/mdx-widgets
petrpan-code/geist-org/geist-ui/lib/components/mdx-widgets/parsed-codes/clock.tsx
import React from 'react' export const __html = ` <span class="token keyword">class</span> <span class="token class-name">Clock</span> <span class="token keyword">extends</span> <span class="token class-name">React<span class="token punctuation">.</span>Component</span> <span class="token punctuation">{</span> <span...
3,009
0
petrpan-code/geist-org/geist-ui/lib/components/mdx-widgets
petrpan-code/geist-org/geist-ui/lib/components/mdx-widgets/parsed-codes/greeting.tsx
import React from 'react' const __html = ` <span class="token keyword">function</span> <span class="token function">getGreeting</span><span class="token punctuation">(</span><span class="token parameter">user</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token k...
3,010
0
petrpan-code/geist-org/geist-ui/lib/components/mdx-widgets
petrpan-code/geist-org/geist-ui/lib/components/mdx-widgets/parsed-codes/index.ts
export * from './clock' export * from './greeting' export * from './types'
3,011
0
petrpan-code/geist-org/geist-ui/lib/components/mdx-widgets
petrpan-code/geist-org/geist-ui/lib/components/mdx-widgets/parsed-codes/types.tsx
import React from 'react' const __html = ` <span class="token keyword module">import</span> <span class="token punctuation">{</span> someFunc<span class="token punctuation">,</span> <span class="token keyword">type</span> <span class="token class-name"><span class="token maybe-class-name">BaseType</span></span> <span ...
3,012
0
petrpan-code/geist-org/geist-ui/lib/components
petrpan-code/geist-org/geist-ui/lib/components/playground/code-theme.ts
import { PrismTheme } from 'prism-react-renderer' import { GeistUIThemes } from 'components/themes/presets' const makeCodeTheme = (theme: GeistUIThemes): PrismTheme => ({ plain: { backgroundColor: theme.palette.background, color: theme.palette.accents_4, fontWeight: '400', fontStyle: 'normal', fo...
3,013
0
petrpan-code/geist-org/geist-ui/lib/components
petrpan-code/geist-org/geist-ui/lib/components/playground/dynamic-live.tsx
import React from 'react' import { LivePreview, LiveProvider, LiveError } from 'react-live' import { useTheme } from 'components' import makeCodeTheme from './code-theme' import Editor from './editor' export interface Props { code: string scope: { [key: string]: any } } const DynamicLive: React.FC<Props> = ...
3,014
0
petrpan-code/geist-org/geist-ui/lib/components
petrpan-code/geist-org/geist-ui/lib/components/playground/editor.tsx
import React, { useState } from 'react' import { LiveEditor } from 'react-live' import { useConfigs } from 'lib/config-context' import { useTheme, useToasts, useClipboard } from 'components' import CopyIcon from '@geist-ui/icons/copy' import RightIcon from '@geist-ui/icons/chevronRight' interface Props { code: strin...
3,015
0
petrpan-code/geist-org/geist-ui/lib/components
petrpan-code/geist-org/geist-ui/lib/components/playground/index.ts
import Playground from './playground' export default Playground
3,016
0
petrpan-code/geist-org/geist-ui/lib/components
petrpan-code/geist-org/geist-ui/lib/components/playground/playground.tsx
import React from 'react' import dynamic from 'next/dynamic' import { useTheme, Loading } from 'components' import { useConfigs } from 'lib/config-context' import Title from './title' const DynamicLive = dynamic(() => import('./dynamic-live'), { ssr: false, loading: () => ( <div style={{ padding: '20pt 0' }}> ...
3,017
0
petrpan-code/geist-org/geist-ui/lib/components
petrpan-code/geist-org/geist-ui/lib/components/playground/title.tsx
import React from 'react' import { VirtualAnchor } from '../pures' export type TitleProps = { title: React.ReactNode | string desc?: React.ReactNode | string } const defaultProps = { desc: '', } const replaceCode = (desc: string): string => { if (!desc.includes('`')) return desc let count = 0 return desc...
3,018
0
petrpan-code/geist-org/geist-ui/lib/components
petrpan-code/geist-org/geist-ui/lib/components/pures/controls.tsx
import React, { useMemo } from 'react' import { Button, useTheme, Select, Spacer, Themes, useAllThemes, Text, Keyboard, } from 'components' import { useConfigs } from 'lib/config-context' import useLocale from 'lib/use-locale' import Router, { useRouter } from 'next/router' import MoonIcon from '@geist-...
3,019
0
petrpan-code/geist-org/geist-ui/lib/components
petrpan-code/geist-org/geist-ui/lib/components/pures/index.ts
export { default as VirtualAnchor } from './anchor' export { default as Controls } from './controls'
3,020
0
petrpan-code/geist-org/geist-ui/lib/components/pures
petrpan-code/geist-org/geist-ui/lib/components/pures/anchor/anchor-icon.tsx
import React from 'react' const AnchorIcon = () => { return ( <svg viewBox="0 0 24 24" width="100%" height="100%" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" fill="none" shapeRendering="geometricPrecision" style=...
3,021
0
petrpan-code/geist-org/geist-ui/lib/components/pures
petrpan-code/geist-org/geist-ui/lib/components/pures/anchor/index.tsx
import React, { useEffect, useRef, useState } from 'react' import { Link, useTheme } from 'components' import AnchorIcon from './anchor-icon' export interface Props { pure?: boolean } export const virtualAnchorEncode = (text?: string) => { if (!text) return undefined return text.toLowerCase().replace(/ /g, '-')...
3,022
0
petrpan-code/geist-org/geist-ui/lib/components
petrpan-code/geist-org/geist-ui/lib/components/search/helper.ts
import seeds, { Seeds } from '../../data/seeds' export type SearchResults = Seeds export type SearchResultGroup = { title: string items: Seeds } export const search = (keyword: string, local: string): SearchResults => { const localSeeds = local.includes('zh') ? seeds['zh-cn'] : seeds['en-us'] const lowerCaseK...
3,023
0
petrpan-code/geist-org/geist-ui/lib/components
petrpan-code/geist-org/geist-ui/lib/components/search/index.tsx
import dynamic from 'next/dynamic' const SearchDynamic = dynamic(() => import('./search'), { ssr: false, loading: () => null, }) const Search = () => { return ( <div className="search"> <SearchDynamic /> <style jsx>{` .search { visibility: hidden; } `}</style> ...
3,024
0
petrpan-code/geist-org/geist-ui/lib/components
petrpan-code/geist-org/geist-ui/lib/components/search/search-icon.tsx
import React, { useMemo } from 'react' import { SearchResults } from './helper' import Type from '@geist-ui/icons/type' import FileFunctionFill from '@geist-ui/icons/fileFunctionFill' import Lambda from '@geist-ui/icons/lambda' import Image from '@geist-ui/icons/image' import Package from '@geist-ui/icons/package' impo...
3,025
0
petrpan-code/geist-org/geist-ui/lib/components
petrpan-code/geist-org/geist-ui/lib/components/search/search-item.tsx
import React, { MouseEvent, FocusEvent } from 'react' import { SearchResults } from './helper' import { Text, useTheme } from 'components' import SearchIcon from './search-icon' export type SearchItemProps = { data: SearchResults[number] onMouseOver: (e: MouseEvent<HTMLButtonElement>) => void onSelect: (url: str...
3,026
0
petrpan-code/geist-org/geist-ui/lib/components
petrpan-code/geist-org/geist-ui/lib/components/search/search-items.tsx
import React, { MouseEvent, useRef, useState, FocusEvent, useImperativeHandle, useMemo, } from 'react' import { groupResults, isSearchItem, SearchResults } from './helper' import SearchItem from './search-item' import { useTheme } from 'components' import Highlight from 'components/shared/highlight' import ...
3,027
0
petrpan-code/geist-org/geist-ui/lib/components
petrpan-code/geist-org/geist-ui/lib/components/search/search.tsx
import React, { useEffect, useRef, useState } from 'react' import { Modal, useKeyboard, KeyMod, KeyCode, useModal, Input, useTheme, useInput, useCurrentState, Divider, } from 'components' import { focusNextElement, search, SearchResults } from './helper' import SearchItems, { SearchItemsRef } from '...
3,028
0
petrpan-code/geist-org/geist-ui/lib
petrpan-code/geist-org/geist-ui/lib/data/index.ts
import enUS from './metadata-en-us.json' import zhCN from './metadata-zh-cn.json' import type { Sides } from 'lib/components/layout/sidebar/side-item' export interface MultipleLocaleMetaInformation { [key: string]: Sides[] } const Metadata: MultipleLocaleMetaInformation = { 'en-us': enUS, 'zh-cn': zhCN, } expo...
3,029
0
petrpan-code/geist-org/geist-ui/lib
petrpan-code/geist-org/geist-ui/lib/data/metadata-en-us.json
[{"name":"guide","children":[{"name":"Getting Started","children":[{"name":"Introduction","url":"/en-us/guide/introduction","index":5,"group":"Getting Started"},{"name":"Installation","url":"/en-us/guide/installation","index":10,"group":"Getting Started"},{"name":"Bundle Size","url":"/en-us/guide/bundle-size","index":1...
3,030
0
petrpan-code/geist-org/geist-ui/lib
petrpan-code/geist-org/geist-ui/lib/data/metadata-zh-cn.json
[{"name":"guide","children":[{"name":"快速上手","children":[{"name":"什么是 Geist UI","url":"/zh-cn/guide/introduction","index":5,"group":"快速上手"},{"name":"安装","url":"/zh-cn/guide/installation","index":10,"group":"快速上手"},{"name":"构建体积","url":"/zh-cn/guide/bundle-size","index":11,"group":"快速上手"},{"name":"服务端渲染","url":"/zh-cn/gu...
3,031
0
petrpan-code/geist-org/geist-ui/lib
petrpan-code/geist-org/geist-ui/lib/data/seeds-en-us.json
[{"name":"AutoComplete","url":"/en-us/components/auto-complete","group":"Data Entry"},{"name":"Avatar","url":"/en-us/components/avatar","group":"Data Display"},{"name":"Badge","url":"/en-us/components/badge","group":"Data Display"},{"name":"Breadcrumbs","url":"/en-us/components/breadcrumbs","group":"Navigation"},{"name...
3,032
0
petrpan-code/geist-org/geist-ui/lib
petrpan-code/geist-org/geist-ui/lib/data/seeds-zh-cn.json
[{"name":"自动完成 Autocomplete","url":"/zh-cn/components/auto-complete","group":"数据录入"},{"name":"头像 Avatar","url":"/zh-cn/components/avatar","group":"数据展示"},{"name":"徽章 Badge","url":"/zh-cn/components/badge","group":"数据展示"},{"name":"面包屑 Breadcrumbs","url":"/zh-cn/components/breadcrumbs","group":"导航"},{"name":"下拉按钮 Btn Dro...
3,033
0
petrpan-code/geist-org/geist-ui/lib
petrpan-code/geist-org/geist-ui/lib/data/seeds.ts
import enUS from './seeds-en-us.json' import zhCN from './seeds-zh-cn.json' export type Seed = { name: string url: string group?: string } export type Seeds = Array<Seed> const SEEDS = { 'en-us': enUS as Seeds, 'zh-cn': zhCN as Seeds, } export default SEEDS
3,034
0
petrpan-code/geist-org/geist-ui
petrpan-code/geist-org/geist-ui/pages/_app.tsx
import Head from 'next/head' import { NextPage } from 'next' import { AppProps } from 'next/app' import React, { useEffect, useState } from 'react' import { MDXProvider } from '@mdx-js/react' import { CssBaseline, GeistProvider, useTheme, GeistUIThemes, Image } from 'components' import ConfigContext from 'lib/config-pr...
3,035
0
petrpan-code/geist-org/geist-ui
petrpan-code/geist-org/geist-ui/pages/_document.tsx
import Document, { Html, Head, Main, NextScript, DocumentContext } from 'next/document' import { CssBaseline } from 'components' class MyDocument extends Document { static async getInitialProps(ctx: DocumentContext) { const initialProps = await Document.getInitialProps(ctx) const styles = CssBaseline.flush()...
3,036
0
petrpan-code/geist-org/geist-ui/pages
petrpan-code/geist-org/geist-ui/pages/en-us/index.tsx
import React from 'react' import { NextPage } from 'next' import { useTheme, Grid } from 'components' import PackageIcon from '@geist-ui/icons/package' import FeatherIcon from '@geist-ui/icons/feather' import GitHubIcon from '@geist-ui/icons/github' import { HomeCell } from 'lib/components' const Application: NextPage...
3,037
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/auto-complete.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { AutoComplete, Spacer, Badge, Grid, Text, Code } from 'components' import { useState, useRef, useEffect } from 'react' export const meta = { title: 'AutoComplete', group: 'Data Entry', } ## Auto Complete AutoComplete control of input field. ...
3,038
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/avatar.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Avatar, Spacer } from 'components' export const meta = { title: 'Avatar', group: 'Data Display', } ## Avatar Avatars represent a user or a team. Stacked avatars represent a group of people. <Playground desc="The `Avatar` contains circle ...
3,039
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/badge.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Badge, Spacer, Avatar, Button, Link, useTheme } from 'components' import NextLink from 'next/link' export const meta = { title: 'Badge', group: 'Data Display', } ## Badge Display an indicator that requires attention. <Playground scope={{...
3,040
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/breadcrumbs.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Breadcrumbs, Spacer } from 'components' import NextLink from 'next/link' import Home from '@geist-ui/icons/home' import Inbox from '@geist-ui/icons/inbox' export const meta = { title: 'Breadcrumbs', group: 'Navigation', } ## Breadcrumbs Sho...
3,041
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/button-dropdown.mdx
import { ButtonDropdown, Spacer } from 'components' import { Playground, Attributes, Layout } from 'lib/components' import Plus from '@geist-ui/icons/plus' export const meta = { title: 'Button Dropdown', group: 'Navigation', index: 101, } ## Button Dropdown Display related but alternate actions for a button. ...
3,042
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/button-group.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Button, Spacer, ButtonGroup } from 'components' export const meta = { title: 'Button Group', group: 'Data Entry', } ## Button Group A set of related buttons. <Playground title="Basic" scope={{ Button, ButtonGroup }} code={` <ButtonGr...
3,043
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/button.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Button, Spacer, Grid, Code } from 'components' import Settings from '@geist-ui/icons/settings' import UserX from '@geist-ui/icons/userX' import Power from '@geist-ui/icons/power' export const meta = { title: 'Button', group: 'General', } ## ...
3,044
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/capacity.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Capacity, Spacer, useTheme } from 'components' export const meta = { title: 'Capacity', group: 'Data Display', } ## Capacity Display an capacity indicator. <Playground scope={{ Capacity, Spacer }} code={` <> <Capacity value={15} /> <...
3,045
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/card.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Card, Spacer, Link, Image, Text, Divider, Code, Grid } from 'components' export const meta = { title: 'Card', group: 'Surfaces', } ## Card A common container component. <Playground title="Basic" scope={{ Card }} code={` <Card> <p>A...
3,046
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/checkbox.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Checkbox, Spacer } from 'components' export const meta = { title: 'Checkbox', group: 'Data Entry', } ## Checkbox Displays a boolean value. <Playground desc="Change state with `checked` props." scope={{ Checkbox }} code={` <Checkbox c...
3,047
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/code.mdx
import { Code, Text } from 'components' import { Layout, Playground, Attributes, ParsedCodes } from 'lib/components' export const meta = { title: 'Code', group: 'General', } ## Code Show source code in a standardized way. Want to display shell code snippets? try [Snippet](/en-us/components/snippet). <Playground...
3,048
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/collapse.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Collapse, Spacer, Text } from 'components' export const meta = { title: 'Collapse', group: 'Surfaces', } ## Collapse Display large amounts of text in collapsible sections. Commonly referred to as an accordion. <Playground scope={{ Collap...
3,049
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/description.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Description, Code } from 'components' export const meta = { title: 'Description', group: 'Data Display', } ## Description Display brief information with a title and description. <Playground desc="`Description` component contains title an...
3,050
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/display.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Display, Code, Snippet, Image } from 'components' export const meta = { title: 'Display', group: 'Data Display', } ## Display To display important information or images in a central alignment. <Playground title="Basic" desc="Describe t...
3,051
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/divider.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Divider, Text } from 'components' export const meta = { title: 'Divider', group: 'Others', } ## Divider A divider line separates different content. <Playground desc="Basic usage." scope={{ Divider, Text }} code={` <> <Text> In ...
3,052
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/dot.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Dot } from 'components' export const meta = { title: 'Dot', group: 'Data Display', } ## Dot Display an indicator of standardization status. <Playground scope={{ Dot }} code={` <> <Dot style={{ marginRight: '15px' }} /> <Dot style={...
3,053
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/drawer.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Drawer, Button } from 'components' export const meta = { title: 'Drawer', group: 'Feedback', } ## Drawer An interactive element fixed to the edge of the screen. <Playground desc="Basic usage." scope={{ Drawer, Button }} code={` () =>...
3,054
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/fieldset.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Card, Fieldset, Button, Text, Divider } from 'components' export const meta = { title: 'Fieldset', group: 'Surfaces', } ## Fieldset Display a collection of related information in a single unit. <Playground title="Basic" desc="Add custo...
3,055
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/file-tree.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Tree, useToasts } from 'components' export const meta = { title: 'File Tree', group: 'Data Display', } ## File Tree Display a list of files and folders in a hierarchical tree structure. <Playground title="Basic" desc="All folders and f...
3,056
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/grid.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Grid, Card } from 'components' import PlaygroundTitle from 'lib/components/playground/title' export const meta = { title: 'Grid', group: 'Layout', } ## Grid Powerful fluid style layout container. The `Grid` component uses **dynamic CSS med...
3,057
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/icons.mdx
import Title from 'lib/components/playground/title' import Github from '@geist-ui/icons/github' import { Spacer, Tabs, Snippet } from 'components' import { Layout, Playground, Attributes, IconsGallery } from 'lib/components' export const meta = { title: 'Icons', group: 'General', } ## Icons Display semantic vect...
3,058
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/image.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Image, Display, Code } from 'components' export const meta = { title: 'Image', group: 'Data Display', } ## Image Display image content. <Playground title="Basic" scope={{ Image }} code={` <Image width="280px" height="160px" src="/ima...
3,059
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/index.js
import redirect from 'lib/redirect' export default redirect('/en-us/components/text')
3,060
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/input.mdx
import { Layout, Playground, Attributes } from 'lib/components' import GitIcon from '@geist-ui/icons/github' import { Input, Spacer, Button, Code, Text, Dot } from 'components' export const meta = { title: 'Input', group: 'Data Entry', } ## Input Retrieve text input from a user. The Input contain an additional ...
3,061
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/keyboard.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Keyboard } from 'components' export const meta = { title: 'Keyboard', group: 'Data Display', } ## Keyboard Display keyboard input that triggers an action. The `Keyboard` can only display layout styles, if you need to bind the keyboard even...
3,062
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/link.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Link, Text, Code, Spacer } from 'components' import NextLink from 'next/link' export const meta = { title: 'Link', group: 'Navigation', } ## Link Hyperlinks between pages. <Playground scope={{ Link }} code={` <Link href="#">HTTP is sta...
3,063
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/loading.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Loading, Spacer, Grid } from 'components' export const meta = { title: 'Loading', group: 'Feedback', } ## Loading Indicate an action running in the background. <Playground scope={{ Loading, Spacer }} code={` <Loading /> `} /> <Playgro...
3,064
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/modal.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Modal, Button, Code, useModal } from 'components' import { useState } from 'react' export const meta = { title: 'Modal', group: 'Feedback', } ## Modal Display popup content that requires attention or provides additional information. If you ...
3,065
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/note.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Note } from 'components' export const meta = { title: 'Note', group: 'Feedback', } ## Note Display text that requires attention or provides additional information. <Playground desc="Show a piece of text or components." scope={{ Note }}...
3,066
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/page.mdx
import { Page, Button } from 'components' import { Layout, Playground, Attributes, MockPage } from 'lib/components' export const meta = { title: 'Page', group: 'Layout', } ## Page Container of general for display page content. <Playground desc="The content will be displayed in the center." scope={{ Page, Mo...
3,067
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/pagination.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Pagination, Spacer } from 'components' import ChevronRight from '@geist-ui/icons/chevronRight' import ChevronLeft from '@geist-ui/icons/chevronLeft' import ChevronRightCircle from '@geist-ui/icons/chevronRightCircle' import ChevronLeftCircle from ...
3,068
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/popover.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Popover, Spacer, Link } from 'components' import { useState } from 'react' export const meta = { title: 'Popover', group: 'Data Display', } ## Popover The floating box popped by clicking or hovering. <Playground scope={{ Popover, Spacer,...
3,069
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/progress.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Progress, Spacer, useTheme, Button } from 'components' import { useState } from 'react' export const meta = { title: 'Progress', group: 'Feedback', } ## Progress Display progress relative to a limit or related to a task. <Playground scop...
3,070
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/radio.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Radio, Spacer, Code } from 'components' import { useState } from 'react' export const meta = { title: 'Radio', group: 'Data Entry', } ## Radio Provides single user input from a selection of options. <Playground scope={{ Radio }} code={...
3,071
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/rating.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Rating, Grid, Spacer } from 'components' import { useState } from 'react' import { Award, Github } from '@geist-ui/icons' export const meta = { title: 'Rating', group: 'Feedback', } ## Rating Display an indicator of rankings with stars. <P...
3,072
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/select.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Select, Spacer, Code, Modal, useModal, Button } from 'components' export const meta = { title: 'Select', group: 'Data Entry', } ## Select Display a dropdown list of items. The Select contain an additional Hooks, see subsection [useModal](/...
3,073
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/slider.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Slider, Spacer } from 'components' import { useState } from 'react' export const meta = { title: 'Slider', group: 'Data Entry', } ## Slider Display the current value and an inputable range. <Playground desc="Accept clicks or drag actions...
3,074
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/snippet.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Snippet, Spacer, Code } from 'components' export const meta = { title: 'Snippet', group: 'Others', } ## Snippet Display a snippet of copyable code for the command line. <Playground desc="Basic usage." scope={{ Snippet }} code={` <Sni...
3,075
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/spacer.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Spacer, Grid } from 'components' export const meta = { title: 'Spacer', group: 'Layout', } ## Spacer Provide empty space. <Playground title="Vertical" scope={{ Spacer, Grid }} code={` <Grid.Container> <Grid xs={24} style={{ backgro...
3,076
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/spinner.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Spinner } from 'components' export const meta = { title: 'Spinner', group: 'Feedback', } ## Spinner Indicate an action running in the background. As an indicator of load waiting, see also component [Loading](/en-us/components/loading). <P...
3,077
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/table.mdx
import { Layout, Playground, PlaygroundTitle, Attributes } from 'lib/components' import { Table, Spacer, Code, Text, Button } from 'components' export const meta = { title: 'Table', group: 'Data Display', } ## Table Display tabular data in format. <Playground desc="Display formatted data in rows and columns."...
3,078
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/tabs.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Tabs, Spacer, Text, Button, Code, useTabs } from 'components' import { useState } from 'react' import TwitterIcon from '@geist-ui/icons/twitter' import TwitchIcon from '@geist-ui/icons/twitch' export const meta = { title: 'Tabs', group: 'Navi...
3,079
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/tag.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Tag, Spacer } from 'components' export const meta = { title: 'Tag', group: 'Data Display', } ## Tag Display a unique keyword, optionally as a part of a set. <Playground scope={{ Tag }} code={` <div> <Tag>Status: Unstable</Tag> </div>...
3,080
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/text.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Text } from 'components' export const meta = { title: 'Text', group: 'General', index: 10, } ## Text Display text using well-defined typographic styles. <Playground title="Headings" desc="Use `Text` to standardize text content." sc...
3,081
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/textarea.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Textarea, Spacer, useInput, Button, Code } from 'components' import { useState } from 'react' export const meta = { title: 'Textarea', group: 'Data Entry', } ## Textarea Retrieve multi-line user input. <Playground desc="Basic usage." s...
3,082
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/toast.mdx
import { Layout, Attributes } from 'lib/components' export const meta = { title: 'Toast', group: 'Feedback', } ## Toast The Toast component only supports Hooks calls, please see the [useToast](/en-us/hooks/use-toast 'Toast Hooks') documentation for details. <Attributes edit="/pages/en-us/components/toast.mdx" /...
3,083
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/toggle.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Toggle, Spacer } from 'components' export const meta = { title: 'Toggle', group: 'Data Entry', } ## Toggle Displays a boolean value. <Playground scope={{ Toggle, Spacer }} code={` <> <Toggle /> <Spacer h={.5} /> <Toggle initialCh...
3,084
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/tooltip.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Tooltip, Spacer, Button, Link, Badge, Code, Text, Grid } from 'components' export const meta = { title: 'Tooltip', group: 'Data Display', } ## Tooltip Displays additional information on hover. <Playground desc="Basic usage." scope={{ T...
3,085
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/components/user.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { User, Spacer } from 'components' export const meta = { title: 'User', group: 'Data Display', } ## User Display user profile or social information. <Playground desc="Show username." scope={{ User, Spacer }} code={` <User src="/images/...
3,086
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/guide/bundle-size.mdx
import Layout from 'lib/components/layout' export const meta = { title: 'Bundle Size', group: 'Getting Started', index: 11, } ## Bundle Size The size of Geist at the completion of full packing is about [111kb](https://bundle.js.org/?q=@geist-ui/react) (Gzipped), This is a good score when comparing the size of ...
3,087
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/guide/colors.mdx
import { Code, Display } from 'components' import { Layout, Colors } from 'lib/components' export const meta = { title: 'Colors', group: 'Customization', index: 20, } ## Colors Default colors for themes. ### PRIMARY You can use any color anywhere, all colors change with the theme. If you want to customize yo...
3,088
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/guide/index.js
import redirect from 'lib/redirect' export default redirect('/en-us/guide/introduction')
3,089
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/guide/installation.mdx
import Layout from 'lib/components/layout' import { Code, Spacer, Tabs, Dot, Snippet, Text } from 'components' export const meta = { title: 'Installation', group: 'Getting Started', index: 10, } ## Installation ### Setup Ensure your have the latest [NodeJS](https://nodejs.org/en/download/), and a package mana...
3,090
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/guide/introduction.mdx
import Layout from 'lib/components/layout' import { Note } from 'components' export const meta = { title: 'Introduction', group: 'Getting Started', index: 5, } ## Introduction ### About **Geist UI** is an elegant and beautiful React component library with Geek style, originating from [Vercel](https://vercel.c...
3,091
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/guide/scale.mdx
import { Layout, Attributes, GridDemo } from 'lib/components' import { Note, Display, Button } from 'components' export const meta = { title: 'Scale', group: 'Customization', index: 30, } ## Scale <Note type="warning"> This feature was introduced in v2.2.0 and up. If you’re using older versions of Geist, p...
3,092
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/guide/server-render.mdx
import Layout from 'lib/components/layout' export const meta = { title: 'Server Render', group: 'Getting Started', index: 15, } ## Server Render **All Components of Geist UI** are compatible with Server Render. In fact, the document you see now is rendered by the server. A common React component rendered as a...
3,093
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/guide/themes.mdx
import Layout from 'lib/components/layout' export const meta = { title: 'Themes', group: 'Customization', index: 25, } ## Themes **Geist UI** now supports a variety of themes, and it is very easy to create or inherit modifications, no third-party styles or configs. As a basic option, there are two themes avail...
3,094
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/hooks/index.js
import redirect from 'lib/redirect' export default redirect('/en-us/hooks/use-keyboard')
3,095
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/hooks/use-body-scroll.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Button, Spacer, Text, useBodyScroll } from 'components' export const meta = { title: 'useBodyScroll', group: 'Utilities', } ## useBodyScroll Disable scrolling behavior for body or any element, it is useful for displaying popup element or me...
3,096
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/hooks/use-classes.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Button, useTheme } from 'components' export const meta = { title: 'useClasses', group: 'Development', index: 104, } ## useClasses Technically, this is not a hooks, it just uses the nomenclature of hooks as well. `useClasses` is used to mi...
3,097
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/hooks/use-click-away.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { Link, Card, Spacer, useClickAway } from 'components' export const meta = { title: 'useClickAway', group: 'Utilities', } ## useClickAway Detect if a click event happened outside an element. This is custom React hooks, you need to follow the...
3,098
0
petrpan-code/geist-org/geist-ui/pages/en-us
petrpan-code/geist-org/geist-ui/pages/en-us/hooks/use-clipboard.mdx
import { Layout, Playground, Attributes } from 'lib/components' import { useClipboard, Link, Button, useToasts, Spacer } from 'components' export const meta = { title: 'useClipboard', group: 'Utilities', } ## useClipboard Copy string to clipboard. This is custom React hooks, you need to follow the <Link target=...
3,099