Skip to main content
Glama
CodingInput.stories.tsx1.37 kB
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 import type { Meta } from '@storybook/react'; import type { JSX } from 'react'; import { Document } from '../Document/Document'; import { CodingInput } from './CodingInput'; export default { title: 'Medplum/CodingInput', component: CodingInput, } as Meta; const valueSet = 'http://hl7.org/fhir/ValueSet/marital-status'; export const Basic = (): JSX.Element => ( <Document> <CodingInput path="" binding={valueSet} name="code" /> </Document> ); export const WithWrapperText = (): JSX.Element => ( <Document> <CodingInput path="" binding={valueSet} name="code" label="My Label" description="My help text" /> </Document> ); export const WithError = (): JSX.Element => ( <Document> <CodingInput path="" binding={valueSet} name="code" label="My Label" description="My help text" error="My error" /> </Document> ); export const MultipleValues = (): JSX.Element => ( <Document> <CodingInput path="" binding={valueSet} name="code" label="Max Values 2" maxValues={2} /> </Document> ); export const Disabled = (): JSX.Element => ( <Document> <CodingInput path="" binding={valueSet} name="code" label="My Label" defaultValue={{ display: 'display' }} disabled /> </Document> );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/medplum/medplum'

If you have feedback or need assistance with the MCP directory API, please join our Discord server