FaasJS
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security

Documents / @faasjs/ant-design / Blank

Function: Blank()

Blank(options?): Element

Render a disabled placeholder when a value is empty.

Empty values include undefined, null, empty strings, and empty arrays.

Parameters

options?

BlankProps

Placeholder text and value to render.

Returns

Element

Rendered value or the configured placeholder text.

Example

import { Blank } from '@faasjs/ant-design'

export function FieldPreview() {
  return <Blank value={undefined} text="Empty" />
}